From: erickson Date: Thu, 27 Jul 2006 19:16:54 +0000 (+0000) Subject: cstore returns objects on create, fixing editor to reflect X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5f5e45b32e147c235f21ef4a1816ebb90f0bddc1;p=Evergreen.git cstore returns objects on create, fixing editor to reflect git-svn-id: svn://svn.open-ils.org/ILS/trunk@5130 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm index c2509ddec5..2319a4165b 100644 --- a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm @@ -459,7 +459,7 @@ sub runmethod { $self->event(_mk_not_found($type, $arg)) unless @$obj; } - $arg->id($obj) if $action eq 'create'; # grabs the id on create + $arg->id($obj->id) if $action eq 'create'; # grabs the id on create $self->data($obj); # cache the data for convenience return ($obj) ? $obj : 1;