[Rt-commit] r10339 -
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident
ruz at bestpractical.com
ruz at bestpractical.com
Sun Jan 13 18:20:26 EST 2008
Author: ruz
Date: Sun Jan 13 18:20:26 2008
New Revision: 10339
Modified:
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Create.html
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Display.html
Log:
* make two constituency comparisions case-insensetive
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Create.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Create.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Create.html Sun Jan 13 18:20:26 2008
@@ -252,8 +252,8 @@
}
if ( $ChildObj && RT->Config->Get('_RTIR_Constituency_Propagation') eq 'reject' ) {
- unless ( $ARGS{ $ARGS{'Constituency'} }
- eq $ChildObj->FirstCustomFieldValue('_RTIR_Constituency') )
+ unless ( lc $ARGS{ $ARGS{'Constituency'} }
+ eq lc $ChildObj->FirstCustomFieldValue('_RTIR_Constituency') )
{
push @results, loc( "New incident and its child #[_1] must have the same constituency", $ChildObj->id );
$checks_failure = 1;
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Display.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Display.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Display.html Sun Jan 13 18:20:26 2008
@@ -273,8 +273,8 @@
if ( RT->Config->Get('_RTIR_Constituency_Propagation') eq 'reject' ) {
return loc("Couldn't link tickets with different constituencies")
- unless $child->FirstCustomFieldValue('_RTIR_Constituency')
- eq $parent->FirstCustomFieldValue('_RTIR_Constituency');
+ unless lc $child->FirstCustomFieldValue('_RTIR_Constituency')
+ eq lc $parent->FirstCustomFieldValue('_RTIR_Constituency');
}
my %args = ();
More information about the Rt-commit
mailing list