[Rt-commit] r18469 - in rt/3.999/trunk: lib/RT/Model
falcone at bestpractical.com
falcone at bestpractical.com
Thu Feb 19 13:51:09 EST 2009
Author: falcone
Date: Thu Feb 19 13:51:08 2009
New Revision: 18469
Modified:
rt/3.999/trunk/etc/initialdata
rt/3.999/trunk/lib/RT/Model/ScripCollection.pm
Log:
* we're moving to lowercase transaction types, update initialdata
and the internal code so this works on databases that care about case
Modified: rt/3.999/trunk/etc/initialdata
==============================================================================
--- rt/3.999/trunk/etc/initialdata (original)
+++ rt/3.999/trunk/etc/initialdata Thu Feb 19 13:51:08 2009
@@ -110,18 +110,18 @@
@scrip_conditions = (
{ name => 'On Create', # loc
description => 'When a ticket is Created', # loc
- applicable_trans_types => 'Create',
+ applicable_trans_types => 'create',
exec_module => 'AnyTransaction', },
{ name => 'On Transaction', # loc
description => 'When anything happens', # loc
- applicable_trans_types => 'Any',
+ applicable_trans_types => 'any',
exec_module => 'AnyTransaction', },
{
name => 'On Correspond', # loc
description => 'Whenever correspondence comes in', # loc
- applicable_trans_types => 'Correspond',
+ applicable_trans_types => 'correspond',
exec_module => 'AnyTransaction', },
{
@@ -134,7 +134,7 @@
name => 'On Status Change', # loc
description => 'Whenever a ticket\'s status changes', # loc
- applicable_trans_types => 'Status',
+ applicable_trans_types => 'status',
exec_module => 'AnyTransaction',
},
@@ -142,14 +142,14 @@
name => 'On priority Change', # loc
description => 'Whenever a ticket\'s priority changes', # loc
- applicable_trans_types => 'Set',
+ applicable_trans_types => 'set',
exec_module => 'priorityChange',
},
{
name => 'On owner Change', # loc
description => 'Whenever a ticket\'s owner changes', # loc
- applicable_trans_types => 'Any',
+ applicable_trans_types => 'any',
exec_module => 'OwnerChange',
},
@@ -157,13 +157,13 @@
name => 'On queue Change', # loc
description => 'Whenever a ticket\'s queue changes', # loc
- applicable_trans_types => 'Set',
+ applicable_trans_types => 'set',
exec_module => 'QueueChange',
},
{ name => 'On Resolve', # loc
description => 'Whenever a ticket is resolved', # loc
- applicable_trans_types => 'Status',
+ applicable_trans_types => 'status',
exec_module => 'StatusChange',
argument => 'resolved'
@@ -171,19 +171,19 @@
{ name => 'User Defined', # loc
description => 'Whenever a user-defined condition occurs', # loc
- applicable_trans_types => 'Any',
+ applicable_trans_types => 'any',
exec_module => 'UserDefined'
},
{ name => 'On Close', # loc
description => 'Whenever a ticket is closed', # loc
- applicable_trans_types => 'Status,Set',
+ applicable_trans_types => 'status,set',
exec_module => 'CloseTicket',
},
{ name => 'On Reopen', # loc
description => 'Whenever a ticket is reopened', # loc
- applicable_trans_types => 'Status,Set',
+ applicable_trans_types => 'status,set',
exec_module => 'ReopenTicket',
},
Modified: rt/3.999/trunk/lib/RT/Model/ScripCollection.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/Model/ScripCollection.pm (original)
+++ rt/3.999/trunk/lib/RT/Model/ScripCollection.pm Thu Feb 19 13:51:08 2009
@@ -345,7 +345,7 @@
alias => $ConditionsAlias,
column => 'applicable_trans_types',
operator => 'LIKE',
- value => "Any",
+ value => "any",
entry_aggregator => 'OR',
);
More information about the Rt-commit
mailing list