[Jifty-commit] r1982 - in jifty/trunk: lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Sep 16 16:18:14 EDT 2006
Author: jesse
Date: Sat Sep 16 16:18:13 2006
New Revision: 1982
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Record.pm
Log:
r27565 at pinglin: jesse | 2006-09-16 21:15:57 +0100
* Ongoing work to pass through Class::ReturnValue errors all the way from Jifty::DBI to the view layer
Modified: jifty/trunk/lib/Jifty/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Record.pm (original)
+++ jifty/trunk/lib/Jifty/Record.pm Sat Sep 16 16:18:13 2006
@@ -85,9 +85,9 @@
}
}
- my($id,$msg) = $self->SUPER::create(%attribs);
- $self->load_by_cols( id => $id ) if ($id);
- return wantarray ? ( $id, _("Record created") ) : $id;
+ my $msg = $self->SUPER::create(%attribs);
+ $self->load_by_cols( id => $self->id ) if ($self->id);
+ return $msg;
}
More information about the Jifty-commit
mailing list