From dd198047ab128658010869830b27ef6b83f5182e Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Mon, 21 Jul 2014 14:17:34 -0400 Subject: [PATCH] 3235: Fix project dropdown, use it when choosing collections. --- .../app/controllers/collections_controller.rb | 3 + .../app/views/application/_choose.html.erb | 63 +++++++++---------- .../application/_projects_tree_menu.html.erb | 2 - .../app/views/layouts/application.html.erb | 22 ++++--- 4 files changed, 45 insertions(+), 45 deletions(-) diff --git a/apps/workbench/app/controllers/collections_controller.rb b/apps/workbench/app/controllers/collections_controller.rb index 5a7a52207b..8547819090 100644 --- a/apps/workbench/app/controllers/collections_controller.rb +++ b/apps/workbench/app/controllers/collections_controller.rb @@ -43,6 +43,9 @@ class CollectionsController < ApplicationController end def choose + # Always offer a Projects dropdown when choosing collections. + params[:by_project] = true + params[:limit] ||= 40 filter = [['link_class','=','name'], diff --git a/apps/workbench/app/views/application/_choose.html.erb b/apps/workbench/app/views/application/_choose.html.erb index 07edb4761e..e8cb807592 100644 --- a/apps/workbench/app/views/application/_choose.html.erb +++ b/apps/workbench/app/views/application/_choose.html.erb @@ -12,41 +12,38 @@