From a4ec684a58d18b37b878d92404d49737ce1d69bc Mon Sep 17 00:00:00 2001 From: Stanislav Koleda Date: Sat, 9 May 2020 02:32:26 +0700 Subject: [PATCH 1/4] Update details_issue_hooks.rb --- lib/details_issue_hooks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/details_issue_hooks.rb b/lib/details_issue_hooks.rb index a0eb12a..cb87d14 100644 --- a/lib/details_issue_hooks.rb +++ b/lib/details_issue_hooks.rb @@ -35,7 +35,7 @@ class DetailsIssueHooks < Redmine::Hook::ViewListener if issue_id issue = Issue.find(issue_id) readOnlyAttributes = issue.read_only_attribute_names(User.current) - requiredAttributes = issue.required_attribute_names(User.current) + requiredAttributes = issue.required_attribute_names(User.current) & issue.safe_attribute_names(User.current) # o << requiredAttributes.to_json From 5be575a324fb921b9f9a6bb5914b81e68303d22d Mon Sep 17 00:00:00 2001 From: Stanislav Koleda Date: Wed, 13 May 2020 20:29:51 +0700 Subject: [PATCH 2/4] Math.trunc() not work in IE Internet Explorer not support Math.trunc() function. Because of this, changing fields does not work in IE. Instead of a function Math.trunc(), you can use the Math.floor() https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc --- lib/details_issue_hooks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/details_issue_hooks.rb b/lib/details_issue_hooks.rb index a0eb12a..be9b361 100644 --- a/lib/details_issue_hooks.rb +++ b/lib/details_issue_hooks.rb @@ -213,7 +213,7 @@ class DetailsIssueHooks < Redmine::Hook::ViewListener o << "