[Rt-commit] r19862 - rtir/2.5/trunk/html/RTIR
ruz at bestpractical.com
ruz at bestpractical.com
Wed Jun 3 06:33:23 EDT 2009
Author: ruz
Date: Wed Jun 3 06:33:22 2009
New Revision: 19862
Modified:
rtir/2.5/trunk/html/RTIR/Create.html
Log:
* add Init callback
Modified: rtir/2.5/trunk/html/RTIR/Create.html
==============================================================================
--- rtir/2.5/trunk/html/RTIR/Create.html (original)
+++ rtir/2.5/trunk/html/RTIR/Create.html Wed Jun 3 06:33:22 2009
@@ -238,6 +238,10 @@
</form>
<%INIT>
+$m->callback(
+ CallbackName => 'Init', CallbackPage => '/Ticket/Create.html',
+ ARGSRef => \%ARGS,
+);
my $QueueObj = new RT::Queue( $session{'CurrentUser'} );
$QueueObj->Load( $Queue ) || Abort( loc("Queue could not be loaded.") );
@@ -277,7 +281,7 @@
push @results, loc('Ticket #[_1] is not an Incident', $Incident );
($checks_failure, $IncidentObj, $Incident) = (1, undef, undef);
}
- elsif ( $ARGS{'Create'}
+ elsif ( !$skip_create
&& RT->Config->Get('_RTIR_Constituency_Propagation') eq 'reject'
&& lc $ARGS{$ARGS{'Constituency'}} ne lc $IncidentObj->FirstCustomFieldValue('Constituency') )
{
More information about the Rt-commit
mailing list