mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 06:44:55 +08:00
Merge pull request #1418 from mlorb/ml-sci-2905
Fix due date can not be set [SCI-2905]
This commit is contained in:
commit
3f79cc5f93
1 changed files with 2 additions and 1 deletions
|
@ -147,7 +147,8 @@ class MyModulesController < ApplicationController
|
||||||
update_params = my_module_params
|
update_params = my_module_params
|
||||||
if update_params[:due_date].present?
|
if update_params[:due_date].present?
|
||||||
update_params[:due_date] = Time.strptime(
|
update_params[:due_date] = Time.strptime(
|
||||||
update_params[:due_date], I18n.backend.date_format.dup.delete('-')
|
update_params[:due_date].delete('-'),
|
||||||
|
I18n.backend.date_format.dup.delete('-')
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
@my_module.assign_attributes(update_params)
|
@my_module.assign_attributes(update_params)
|
||||||
|
|
Loading…
Reference in a new issue