Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'dev' of github.com:den-plugins/redmine-custom into dev

  • Loading branch information...
commit 19a9822f103fa693cee5032b8fb1a68cc73ae69d 2 parents 8bdbb2a + bf87a0c
@nbantatua nbantatua authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/custom_issue_relation_patch.rb
View
2  lib/custom_issue_relation_patch.rb
@@ -31,7 +31,7 @@ def update_parent_status_on_delete
def validate_parentship
if issue_from && issue_to
errors.add :issue_to_id,
- :invalid if relation_type.eql? "subtasks" and (issue_from.tracker_id == (2 || 4)) and issue_to.tracker_id != (2 || 4)
+ :invalid if relation_type.eql? "subtasks" and issue_from.tracker_id.eql? 2 and issue_to.tracker_id.eql? 1
errors.add :issue_to_id,
:invalid if relation_type.eql? "subtasks" and !issue_to.tracker_id.eql? 1 and issue_from.tracker_id.eql? 1
errors.add :issue_to_id,
Please sign in to comment.
Something went wrong with that request. Please try again.