From dd3ed349ceb509918c17124f84d71df09e0226f5 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 21 Mar 2020 09:56:29 +0100 Subject: [PATCH] Categories filtered by project (#55) --- README.md | 3 ++- init.rb | 2 +- lib/details_issue_hooks.rb | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9cb41c1..308f5c7 100644 --- a/README.md +++ b/README.md @@ -31,10 +31,11 @@ You can set some settings by editing the file `assets/javascripts/issue_dynamic_ Feel free to edit `assets/stylesheets/issue_dynamic_edit.css` to update the look of your fields depending on your current Redmine Theme. -This plugin uses [FontAwesome icons](http://fontawesome.io/) +This plugin uses [FontAwesome icons 4.7](https://fontawesome.com/v4.7.0/) ### 🆕 Changelog +* **v 0.7.0** : Category filter by project added (#55) and prevent dialog closing when using fa-pencil selector (#59) * **v 0.6.9** : Category field support (Github request #54) * **v 0.6.8** : Checkboxes custom fields fixed (#53) * **v 0.6.7** : fixed Github issue #46 : text field focus issue diff --git a/init.rb b/init.rb index 107cc32..2f7cc9f 100644 --- a/init.rb +++ b/init.rb @@ -6,7 +6,7 @@ Redmine::Plugin.register :redmine_issue_dynamic_edit do name 'Redmine Dynamic edit Issue plugin' author 'Hugo Zilliox' description 'Allows users to dynamically update issue attributes in detailed view without refreshing the page (JIRA style)' - version '0.6.9' + version '0.7.0' url 'https://github.com/ilogeek/redmine_issue_dynamic_edit' author_url 'https://hzilliox.fr' end diff --git a/lib/details_issue_hooks.rb b/lib/details_issue_hooks.rb index a7a9d53..76c664b 100644 --- a/lib/details_issue_hooks.rb +++ b/lib/details_issue_hooks.rb @@ -106,7 +106,7 @@ class DetailsIssueHooks < Redmine::Hook::ViewListener end # Categories dropdown - categories = IssueCategory.all + categories = project.issue_categories if !categories.empty? && !(readOnlyAttributes.include? 'category_id') o << ""