OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#52147] fix cop errors
Tobias Dillmannffeee35a2b19
diff --git a/app/helpers/sort_helper.rb b/app/helpers/sort_helper.rbindex dd673ca038d..c011d5d59c3 100644--- a/app/helpers/sort_helper.rb+++ b/app/helpers/sort_helper.rb@@ -77,7 +77,9 @@# - Introduces instance variables: @sort_default, @sort_criteria# - Introduces param :sort#-+# rubocop:disable Lint/RedundantCopDisableDirective, Rails/HelperInstanceVariable+# TODO: We should not use instance variables in our rails helpers. Since this is a bigger piece of work, for now+# we just disable the respective cop. Due to a bug, we must also disable the redundancy cop.module SortHelperclass SortCriteriaattr_reader :criteria@@ -554,3 +556,4 @@ module SortHelpercaptionendend+# rubocop:enable Rails/HelperInstanceVariable, Lint/RedundantCopDisableDirectivediff --git a/frontend/src/stimulus/controllers/dynamic/table-action-menu.controller.ts b/frontend/src/stimulus/controllers/dynamic/table-action-menu.controller.tsindex 00feed62859..b05c79dec0c 100644--- a/frontend/src/stimulus/controllers/dynamic/table-action-menu.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/table-action-menu.controller.ts@@ -47,9 +47,9 @@ export default class TableActionMenuController extends Controller {}}- filterBy(event: Event) {+ filterBy(event:Event) {// Sometimes the filterController was not loaded during `connect`, so we try again here:- if (!this.filterController) { this.findFilterController() }+ if (!this.filterController) { this.findFilterController(); }const button = event.currentTarget as HTMLElement;