[Rt-commit] [rtir] 19/19: When merging tickets, respect StrictConstituencyLinking

Jesse Vincent jesse at bestpractical.com
Wed Mar 25 00:21:03 EDT 2015


This is an automated email from the git hooks/post-receive script.

jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.

commit 8492bb50d06a62d46770dab16a8d4abbeaf03554
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Mar 24 20:57:49 2015 -0700

    When merging tickets, respect StrictConstituencyLinking
---
 html/RTIR/Merge/index.html | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/html/RTIR/Merge/index.html b/html/RTIR/Merge/index.html
index b367fac..12c6a3c 100644
--- a/html/RTIR/Merge/index.html
+++ b/html/RTIR/Merge/index.html
@@ -96,7 +96,21 @@ if ( $MergeTicket ) {
     ) {
         push @results, loc("Merge failed: Ticket #[_1] is not the right type", $MergeTicket->Id );
         $checks_failure = 1;
-    }
+        }
+
+        if (RT::IR->StrictConstituencyLinking) {
+        if (RT::IR->ConstituencyFor($Ticket) 
+            != RT::IR->ConstituencyFor($MergeTicket)) {
+            push @results, 
+            loc("Merge failed: Ticket #[_1] is associated with a different constituency", 
+                $MergeTicket->Id );
+	            $checks_failure = 1;
+	        }
+
+        }
+
+
+
 }
 
 if ( $MergeTicket && !$checks_failure ) {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list