returning SUCCESS on note-create to match other methods
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Aug 2006 20:49:11 +0000 (20:49 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Aug 2006 20:49:11 +0000 (20:49 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5311 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Collections.pm

index 8e48061..62c2252 100644 (file)
@@ -622,7 +622,7 @@ __PACKAGE__->register_method(
 
                'return' => { 
                        desc            => q/
-                               Returns '1' on success, event on error.
+                               Returns SUCCESS event on success, error event otherwise.
                                /,
                        type            => 'object'
                }
@@ -650,7 +650,7 @@ sub create_user_note {
 
        $e->create_actor_usr_note($note) or return $e->event;
        $e->commit;
-       return 1;
+       return OpenILS::Event->new('SUCCESS');
 }