[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-143-g0307825
Kevin Falcone
falcone at bestpractical.com
Fri Sep 3 10:38:04 EDT 2010
The branch, 3.8-trunk has been updated
via 030782516636e03b75d81661643ba6f1af521fb9 (commit)
from b7e577998573e4559890183a7444ab4e15814939 (commit)
Summary of changes:
lib/RT/Scrip_Overlay.pm | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 030782516636e03b75d81661643ba6f1af521fb9
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Fri Sep 3 10:39:12 2010 -0400
Pass ids when _Set'ing an INTEGER column
RT will gladly cache the string in the object and reload cleanly
and if your database doesn't throw an error (mysql) then this will
appear to work for SetTemplate('Forward');
diff --git a/lib/RT/Scrip_Overlay.pm b/lib/RT/Scrip_Overlay.pm
index b6a2130..99c62f3 100755
--- a/lib/RT/Scrip_Overlay.pm
+++ b/lib/RT/Scrip_Overlay.pm
@@ -601,7 +601,7 @@ sub SetScripAction {
return ( 0, $self->loc( "Action '[_1]' not found", $value ) )
unless $action->Id;
- return $self->_Set( Field => 'ScripAction', Value => $value );
+ return $self->_Set( Field => 'ScripAction', Value => $action->Id );
}
=head2 SetScripCondition
@@ -622,7 +622,7 @@ sub SetScripCondition {
return ( 0, $self->loc( "Condition '[_1]' not found", $value ) )
unless $condition->Id;
- return $self->_Set( Field => 'ScripCondition', Value => $value );
+ return $self->_Set( Field => 'ScripCondition', Value => $condition->Id );
}
=head2 SetTemplate
@@ -641,7 +641,7 @@ sub SetTemplate {
return ( 0, $self->loc( "Template '[_1]' not found", $value ) )
unless $template->Id;
- return $self->_Set( Field => 'Template', Value => $value );
+ return $self->_Set( Field => 'Template', Value => $template->Id );
}
1;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list