-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue#3069 - (DCC Issue 675) - Org Admin and Super Admin searches and
pagination of user's plans broken. Fix for issue #3069 and DCC issue https://github.com/DigitalCurationCentre/DMPonline-Service/issues/675. Changes: - Replaced view files /paginable/plans/org_admin_other_user with /paginable/plans/_index.html.erb with extra checks for plan.owner.present? as missing plan.owner broke a DCC user's plans being render by org_admin. - Replaced partial with '/paginable/plans/org_admin_other_user' with '/paginable/plans/index', replaced action'org_admin_other_user' with 'index' in paginable_renderiser() method in views /org_admin/users/edit.html.erb. /org_admin/users/plans.html.erb and /super_admin/users/edit.html.erb. - In Paginable::PlansController replaced - # GET /paginable/plans/org_admin/:page with # GET /paginable/users/:id/plans associated with method org_admin_other_user() renamed index() - Routes replaced get "org_admin_other_user/:page", action: :org_admin_other_user, on: :collection, as: :org_admin_other_user # Paginable actions for users resources :users, only: [] do get "index/:page", action: :index, on: :collection, as: :index with resources :users, only: %i[index] do member do resources :plans, only: %(index) end end
- Loading branch information
John Pinto
committed
Jan 5, 2022
1 parent
43c5b03
commit 2c00cde
Showing
6 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters