diff --git a/.drone.jsonnet b/.drone.jsonnet index 309ddec..52f17fd 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -16,15 +16,14 @@ local Pipeline(rubyVer, db, license, redmine, dependents) = { }; [ - Pipeline("2.7.3", "mysql", "pro", "trunk", "redmine_agile+pro"), - Pipeline("2.7.3", "mysql", "light", "trunk", "redmine_agile+light"), - Pipeline("2.7.3", "pg", "pro", "trunk", ""), - Pipeline("2.2.6", "mysql", "pro", "3.4", ""), - Pipeline("2.2.6", "mysql", "pro", "3.3", ""), - Pipeline("2.2.6", "mysql", "light", "3.3", ""), - Pipeline("2.2.6", "pg", "pro","3.3", ""), - Pipeline("2.2.6", "pg", "light", "3.3", ""), - Pipeline("2.4.1", "mysql", "light", "3.4", ""), + Pipeline("3.1.0", "pg", "pro", "trunk", ""), + Pipeline("3.1.0", "mysql", "pro", "trunk", "redmine_agile+pro"), + Pipeline("3.1.0", "mysql", "light", "trunk", "redmine_agile+light"), + Pipeline("3.1.0", "pg", "pro", "5.0", ""), + Pipeline("2.7.3", "mysql", "pro", "4.2", ""), + Pipeline("2.7.3", "pg", "light", "4.2", ""), + Pipeline("2.4.1", "mysql", "light", "4.0", ""), Pipeline("2.4.1", "pg", "pro", "3.4", "redmine_contacts+pro"), + Pipeline("2.2.6", "pg", "light", "3.4", ""), Pipeline("2.2.6", "mysql", "pro", "3.0", "") ] diff --git a/app/controllers/issue_tags_controller.rb b/app/controllers/issue_tags_controller.rb index fa9550f..936a7cc 100644 --- a/app/controllers/issue_tags_controller.rb +++ b/app/controllers/issue_tags_controller.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index beeeb61..bc4c5f9 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/app/helpers/issues_tags_helper.rb b/app/helpers/issues_tags_helper.rb index 6322ced..c975f45 100644 --- a/app/helpers/issues_tags_helper.rb +++ b/app/helpers/issues_tags_helper.rb @@ -3,7 +3,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/app/helpers/tags_helper.rb b/app/helpers/tags_helper.rb index c713bff..f1b786e 100644 --- a/app/helpers/tags_helper.rb +++ b/app/helpers/tags_helper.rb @@ -3,7 +3,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/config/locales/ro.yml b/config/locales/ro.yml new file mode 100644 index 0000000..df86462 --- /dev/null +++ b/config/locales/ro.yml @@ -0,0 +1,36 @@ +ro: + tags: Etichete + field_tags: Etichete + field_tag_list: Etichete + label_add_tags: Adaugă etichete + notice_tags_added: Etichetele au fost adăugate + notice_failed_to_add_tags: Etichetele nu s-au putut adăuga + setting_issue_tags: Etichete de sarcini + issues_sidebar: Mod de afișare etichete în sidebar + issues_show_count: Afișează numărul de sarcini + issues_open_only: Afișează doar pentru sarcinile deschise + issues_sort_by: Sortează etichetele după + issues_use_colors: Folosește culori + + issue_tags_sidebar_none: Deloc + issue_tags_sidebar_list: Listă + issue_tags_sidebar_cloud: Nor + issue_tags_sidebar_simple_cloud: Nor simplu + + issues_sort_by_name: Denumire + issues_sort_by_count: Număr de sarcini + issues_sort_order_asc: Crescător + issues_sort_order_desc: Descrescător + + auto_complete_new_tag: "Adaugă..." + + issue_tags_label_add_tag: "+ adaugă etichetă" + issue_tags_manage_tags: Administrare etichete + issue_tags_tag: Etichetă + issue_tags_button_merge: Unește + issue_tags_label_merge: Unește etichetele selectate + + tags_suggestion_order: Sugerează în ordine, pornind de la + tags_order_by_name: Denumire alfabetic + tags_order_by_last_created: Ultima creată + tags_order_by_most_used: Cea mai folosită diff --git a/config/routes.rb b/config/routes.rb index f7f5f84..c36f837 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/db/migrate/001_add_tags_and_taggings.rb b/db/migrate/001_add_tags_and_taggings.rb index ae21df2..3c4ea2d 100644 --- a/db/migrate/001_add_tags_and_taggings.rb +++ b/db/migrate/001_add_tags_and_taggings.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/db/migrate/002_create_tags.rb b/db/migrate/002_create_tags.rb index 25ba3e6..b114c7b 100644 --- a/db/migrate/002_create_tags.rb +++ b/db/migrate/002_create_tags.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/doc/CHANGELOG b/doc/CHANGELOG index 488484d..63bca3d 100755 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -1,9 +1,14 @@ == Redmine Tags plugin changelog Redmine Tags plugin - Tags board plugin for redmine -Copyright (C) 2011-2022 RedmineUP +Copyright (C) 2011-2023 RedmineUP http://www.redmineup.com/ +== 2023-01-27 v2.0.13 + +* Romanian locale updated (MarianV) +* Fixed "is not" tags filter condition + == 2022-04-11 v2.0.12 * Fixed broken link diff --git a/init.rb b/init.rb index d867f82..beed4df 100644 --- a/init.rb +++ b/init.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify @@ -17,11 +17,11 @@ # You should have received a copy of the GNU General Public License # along with redmine_tags. If not, see . -requires_redmine_crm version_or_higher: '0.0.56' rescue raise "\n\033[31mRedmine requires newer redmine_crm gem version.\nPlease update with 'bundle update redmine_crm'.\033[0m" +requires_redmine_crm version_or_higher: '0.0.59' rescue raise "\n\033[31mRedmine requires newer redmine_crm gem version.\nPlease update with 'bundle update redmine_crm'.\033[0m" require 'redmine' -TAGS_VERSION_NUMBER = '2.0.12' +TAGS_VERSION_NUMBER = '2.0.13' TAGS_VERSION_TYPE = 'Light version' Redmine::Plugin.register :redmineup_tags do diff --git a/lib/query_tags_column.rb b/lib/query_tags_column.rb index 8b27a57..e2a52ae 100644 --- a/lib/query_tags_column.rb +++ b/lib/query_tags_column.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags.rb b/lib/redmineup_tags.rb index e3a1faf..557f79d 100644 --- a/lib/redmineup_tags.rb +++ b/lib/redmineup_tags.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/hooks/model_issue_hook.rb b/lib/redmineup_tags/hooks/model_issue_hook.rb index d2d7fdd..d3092ce 100644 --- a/lib/redmineup_tags/hooks/model_issue_hook.rb +++ b/lib/redmineup_tags/hooks/model_issue_hook.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/hooks/views_context_menus_hook.rb b/lib/redmineup_tags/hooks/views_context_menus_hook.rb index 674c5ad..4d8efa5 100644 --- a/lib/redmineup_tags/hooks/views_context_menus_hook.rb +++ b/lib/redmineup_tags/hooks/views_context_menus_hook.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/hooks/views_issues_hook.rb b/lib/redmineup_tags/hooks/views_issues_hook.rb index 31a82e2..a3fbe16 100644 --- a/lib/redmineup_tags/hooks/views_issues_hook.rb +++ b/lib/redmineup_tags/hooks/views_issues_hook.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/hooks/views_layouts_hook.rb b/lib/redmineup_tags/hooks/views_layouts_hook.rb index 7f273e0..3cabade 100644 --- a/lib/redmineup_tags/hooks/views_layouts_hook.rb +++ b/lib/redmineup_tags/hooks/views_layouts_hook.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/hooks/views_reports_hook.rb b/lib/redmineup_tags/hooks/views_reports_hook.rb index 3ef63f6..8db1fa5 100644 --- a/lib/redmineup_tags/hooks/views_reports_hook.rb +++ b/lib/redmineup_tags/hooks/views_reports_hook.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/patches/action_controller_patch.rb b/lib/redmineup_tags/patches/action_controller_patch.rb index 8a064f7..33d48d3 100644 --- a/lib/redmineup_tags/patches/action_controller_patch.rb +++ b/lib/redmineup_tags/patches/action_controller_patch.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/patches/add_helpers_for_issue_tags_patch.rb b/lib/redmineup_tags/patches/add_helpers_for_issue_tags_patch.rb index 86c7061..7b3d071 100644 --- a/lib/redmineup_tags/patches/add_helpers_for_issue_tags_patch.rb +++ b/lib/redmineup_tags/patches/add_helpers_for_issue_tags_patch.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/patches/agile_query_patch.rb b/lib/redmineup_tags/patches/agile_query_patch.rb index 71cfac0..7830cfb 100644 --- a/lib/redmineup_tags/patches/agile_query_patch.rb +++ b/lib/redmineup_tags/patches/agile_query_patch.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/patches/agile_versions_query_patch.rb b/lib/redmineup_tags/patches/agile_versions_query_patch.rb index 92ff939..75c89fc 100644 --- a/lib/redmineup_tags/patches/agile_versions_query_patch.rb +++ b/lib/redmineup_tags/patches/agile_versions_query_patch.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/patches/auto_completes_controller_patch.rb b/lib/redmineup_tags/patches/auto_completes_controller_patch.rb index f6ead13..ddbf320 100644 --- a/lib/redmineup_tags/patches/auto_completes_controller_patch.rb +++ b/lib/redmineup_tags/patches/auto_completes_controller_patch.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/patches/issue_patch.rb b/lib/redmineup_tags/patches/issue_patch.rb index 40e1ec2..6f13299 100644 --- a/lib/redmineup_tags/patches/issue_patch.rb +++ b/lib/redmineup_tags/patches/issue_patch.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/patches/issue_query_patch.rb b/lib/redmineup_tags/patches/issue_query_patch.rb index 14318b6..18fa07b 100644 --- a/lib/redmineup_tags/patches/issue_query_patch.rb +++ b/lib/redmineup_tags/patches/issue_query_patch.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify @@ -52,7 +52,7 @@ module RedmineupTags op = operator_for('issue_tags') case op when '=', '!' - issues = issues.tagged_with(values_for('issue_tags').clone, match_all: true) + issues = issues.tagged_with(values_for('issue_tags').clone, any: true) when '!*' issues = issues.joins(:tags).uniq else diff --git a/lib/redmineup_tags/patches/queries_helper_patch.rb b/lib/redmineup_tags/patches/queries_helper_patch.rb index 11f2dba..61dddf6 100644 --- a/lib/redmineup_tags/patches/queries_helper_patch.rb +++ b/lib/redmineup_tags/patches/queries_helper_patch.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/patches/reports_controller_patch.rb b/lib/redmineup_tags/patches/reports_controller_patch.rb index e69d10a..2cd8998 100644 --- a/lib/redmineup_tags/patches/reports_controller_patch.rb +++ b/lib/redmineup_tags/patches/reports_controller_patch.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/patches/time_entry_patch.rb b/lib/redmineup_tags/patches/time_entry_patch.rb index f95d91a..bc45b78 100644 --- a/lib/redmineup_tags/patches/time_entry_patch.rb +++ b/lib/redmineup_tags/patches/time_entry_patch.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/patches/time_entry_query_patch.rb b/lib/redmineup_tags/patches/time_entry_query_patch.rb index 551fddf..d054005 100644 --- a/lib/redmineup_tags/patches/time_entry_query_patch.rb +++ b/lib/redmineup_tags/patches/time_entry_query_patch.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/lib/redmineup_tags/patches/time_report_patch.rb b/lib/redmineup_tags/patches/time_report_patch.rb index 9cc642e..fa48874 100644 --- a/lib/redmineup_tags/patches/time_report_patch.rb +++ b/lib/redmineup_tags/patches/time_report_patch.rb @@ -1,7 +1,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/test/functional/agile_boards_controller_test.rb b/test/functional/agile_boards_controller_test.rb index f717a5c..94caea8 100644 --- a/test/functional/agile_boards_controller_test.rb +++ b/test/functional/agile_boards_controller_test.rb @@ -3,7 +3,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/test/functional/agile_versions_controller_test.rb b/test/functional/agile_versions_controller_test.rb index 73548c0..1cb5399 100644 --- a/test/functional/agile_versions_controller_test.rb +++ b/test/functional/agile_versions_controller_test.rb @@ -3,7 +3,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/test/functional/auto_completes_controller_test.rb b/test/functional/auto_completes_controller_test.rb index aeb9652..eea57f7 100644 --- a/test/functional/auto_completes_controller_test.rb +++ b/test/functional/auto_completes_controller_test.rb @@ -3,7 +3,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/test/functional/issue_tags_controller_test.rb b/test/functional/issue_tags_controller_test.rb index 0166d9c..2664cd8 100644 --- a/test/functional/issue_tags_controller_test.rb +++ b/test/functional/issue_tags_controller_test.rb @@ -3,7 +3,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 0cafb31..c0258c1 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -3,7 +3,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify @@ -68,6 +68,26 @@ class IssuesControllerTest < ActionController::TestCase issue.tags = [] end + def test_get_index_without_selected_tags + issue1, issue2 = Issue.find(1), Issue.find(2) + issue1.tags << @tag + issue2.tags << @last_tag + compatible_request( + :get, + :index, + f: ['issue_tags'], + op: { issue_tags: '!' }, + v: { issue_tags: ['test_tag', 'last_tag'] }, + c: ['status', 'priority', 'subject', 'tags_relations'] + ) + assert_response :success + assert_select 'table.list.issues tr.issue', (Issue.count - 2) + assert_select 'table.list.issues tr.issue td.subject', text: issue2.subject, count: 0 + assert_select 'table.list.issues tr.issue td.tags a', text: 'test_tag', count: 0 + ensure + issue1.tags, issue2.tags = [], [] + end + def test_get_index_with_sidebar_tags_in_list_by_count issue1 = Issue.find(1) issue1.tags << @tag diff --git a/test/functional/reports_controller_test.rb b/test/functional/reports_controller_test.rb index a8426fa..0476148 100644 --- a/test/functional/reports_controller_test.rb +++ b/test/functional/reports_controller_test.rb @@ -3,7 +3,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/test/functional/tags_controller_test.rb b/test/functional/tags_controller_test.rb index a59b77a..0b2a006 100644 --- a/test/functional/tags_controller_test.rb +++ b/test/functional/tags_controller_test.rb @@ -3,7 +3,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index 0bca0f7..00abb41 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -3,7 +3,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/test/test_helper.rb b/test/test_helper.rb index 2e5ce17..e293729 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -3,7 +3,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index bfbc4cc..7019d26 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_test.rb @@ -3,7 +3,7 @@ # This file is a part of Redmine Tags (redmine_tags) plugin, # customer relationship management plugin for Redmine # -# Copyright (C) 2011-2022 RedmineUP +# Copyright (C) 2011-2023 RedmineUP # http://www.redmineup.com/ # # redmine_tags is free software: you can redistribute it and/or modify