aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorXinhui2017-03-29 16:05:38 +0200
committerXinhui2017-03-29 16:05:38 +0200
commitb29d19d3f5254c30a8660e9e8fbb93db3cb1d2cd (patch)
tree3f11763a9f499292731210924f45aca1fbd9adf7 /app/controllers
parenteaf9d4cf03ebd4c6c3c01a488736c86542b6119b (diff)
downloadchouette-core-b29d19d3f5254c30a8660e9e8fbb93db3cb1d2cd.tar.bz2
Fix workbench filter form validity_period keep value after submit
Refs #2994
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/workbenches_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/workbenches_controller.rb b/app/controllers/workbenches_controller.rb
index 58fd507d4..ecf70805d 100644
--- a/app/controllers/workbenches_controller.rb
+++ b/app/controllers/workbenches_controller.rb
@@ -66,7 +66,9 @@ class WorkbenchesController < BreadcrumbController
if begin_range > end_range
flash.now[:error] = t('referentials.errors.validity_period')
else
- scope = scope.in_periode(begin_range..end_range)
+ scope = scope.in_periode(begin_range..end_range)
+ @begin_range = begin_range
+ @end_range = end_range
end
scope
end