Skip to content

Commit

Permalink
load more bug / date join bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nateiler committed Apr 17, 2018
1 parent aa85d1b commit e3d78ef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
Changelog
=========
## Unreleased
### Changed
- load more action when viewing more than associated organization users
- fixed issue where Join Date was not getting updated correctly.

## 1.0.0-rc.2 - 2018-03-28
### Fixed
### Changed
- dependency templates were not registered in admin views

## 1.0.0-rc.1 - 2018-03-26
Expand Down
3 changes: 3 additions & 0 deletions src/cp/controllers/view/OrganizationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ private function getUserIndexJs(OrganizationElement $element): array
],
'viewParams' => [
'organization' => $element->getId()
],
'viewSettings' => [
'loadMoreAction' => 'organizations/cp/user-indexes/get-more-elements'
]
];
}
Expand Down
6 changes: 3 additions & 3 deletions src/services/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ protected function elementToRecord(OrganizationElement $organization): Organizat
}

// Populate the record attributes
$record->setAttributes(
ArrayHelper::toArray($organization)
);
$record->id = $organization->getId();
$record->state = $organization->state;
$record->dateJoined = $organization->dateJoined;

return $record;
}
Expand Down

0 comments on commit e3d78ef

Please sign in to comment.