-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove all-trackers entry in template filters and clean-up code
- Loading branch information
Showing
9 changed files
with
58 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
require_dependency 'issue_priority' | ||
|
||
class IssuePriority < Enumeration | ||
has_many :issue_templates, :foreign_key => 'priority_id' | ||
has_many :issue_templates, :foreign_key => 'priority_id' | ||
end | ||
|
||
module PluginRedmineTemplates | ||
module IssuePriorityPatch | ||
def objects_count | ||
count = super | ||
count = super | ||
count + issue_templates.count | ||
end | ||
|
||
def transfer_relations(to) | ||
super | ||
issue_templates.update_all(:priority_id => to.id) | ||
issue_templates.update_all(priority_id: to.id) | ||
end | ||
|
||
end | ||
end | ||
|
||
IssuePriority.prepend PluginRedmineTemplates::IssuePriorityPatch | ||
IssuePriority.prepend PluginRedmineTemplates::IssuePriorityPatch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
require_dependency "enumeration" | ||
|
||
class Typology < Enumeration | ||
has_many :issue_templates, :dependent => :nullify | ||
end | ||
class Typology < Enumeration | ||
|
||
has_many :issue_templates, :dependent => :nullify | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters