[Jifty-commit] jifty branch, master, updated. f4c392a8e19d4a3a24eb73ed2f248e511230dbd6
Jifty commits
jifty-commit at lists.jifty.org
Tue Dec 15 14:45:18 EST 2009
The branch, master has been updated
via f4c392a8e19d4a3a24eb73ed2f248e511230dbd6 (commit)
from 423006b127456056f799e207d4cbd73ca4ad1349 (commit)
Summary of changes:
lib/Jifty/Action/Record/Update.pm | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit f4c392a8e19d4a3a24eb73ed2f248e511230dbd6
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Dec 15 14:45:02 2009 -0500
When we update a record, set the result's "id" column for consistency with Create
diff --git a/lib/Jifty/Action/Record/Update.pm b/lib/Jifty/Action/Record/Update.pm
index c372289..6bd4ce7 100644
--- a/lib/Jifty/Action/Record/Update.pm
+++ b/lib/Jifty/Action/Record/Update.pm
@@ -192,6 +192,8 @@ sub take_action {
$self->report_success
if $changed and not $self->result->failure;
+ $self->result->content(id => $self->record->id);
+
$self->result->content( detailed_messages => $detailed_messages )
if $self->report_detailed_messages;
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list