[Rt-commit] r9376 - rtir/branches/2.3-EXPERIMENTAL/html/RTIR

ruz at bestpractical.com ruz at bestpractical.com
Fri Oct 19 22:51:36 EDT 2007


Author: ruz
Date: Fri Oct 19 22:51:36 2007
New Revision: 9376

Modified:
   rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html

Log:
* apply the check only when we're going to create a new ticket not earlier,
  thanks to regression tests

Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html	(original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html	Fri Oct 19 22:51:36 2007
@@ -381,7 +381,8 @@
         push @results, loc('Ticket #[_1] is not an Incident', $Incident );
         ($checks_failure, $IncidentObj, $Incident) = (1, undef, undef);
     }
-    elsif ( RT->Config->Get('_RTIR_Constituency_Propagation') eq 'reject'
+    elsif ( $ARGS{'Create'} 
+        && RT->Config->Get('_RTIR_Constituency_Propagation') eq 'reject'
         && $ARGS{$ARGS{'Constituency'}} ne $IncidentObj->FirstCustomFieldValue('_RTIR_Constituency') )
     {
         push @results, loc('Incident #[_1] has constituency [_2], choose the same value for a new ticket or use another Incident', $Incident, $IncidentObj->FirstCustomFieldValue('_RTIR_Constituency') );


More information about the Rt-commit mailing list