[Rt-commit] rt branch, 3.999-trunk, updated. 9d16c8fc7955b698b03cbd62e97eac569c9088fd
sartak at bestpractical.com
sartak at bestpractical.com
Tue Dec 1 04:54:13 EST 2009
The branch, 3.999-trunk has been updated
via 9d16c8fc7955b698b03cbd62e97eac569c9088fd (commit)
from 0c6af8f3186a836820a629b72d17b6afeb1a5f6f (commit)
Summary of changes:
lib/RT/Record.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 9d16c8fc7955b698b03cbd62e97eac569c9088fd
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Dec 1 04:53:53 2009 -0500
Pass for => 'create' when calling validate_* in RT::Record
diff --git a/lib/RT/Record.pm b/lib/RT/Record.pm
index fc5e1ed..fcaa7c9 100755
--- a/lib/RT/Record.pm
+++ b/lib/RT/Record.pm
@@ -255,7 +255,7 @@ sub create {
foreach my $key ( keys %attribs ) {
my $method = $self->can("validate_$key");
if ($method) {
- unless ( $method->( $self, $attribs{$key} ) ) {
+ unless ( $method->( $self, $attribs{$key}, { for => 'create' } ) ) {
if (wantarray) {
return ( 0, _( 'Invalid value for %1', $key ) );
} else {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list