[mb-commits] branch, mbs-5586, updated. MBS-5586, do not change the order of post_creation and on_creation hooks.

MusicBrainz Git Server <[email protected]> Mon, 21 Jan 2013 11:20:32 +0000
Newsgroups gmane.comp.audio.musicbrainz.cvs
Message-ID <E1TxFQW-0007YM-4u@wiley>
The branch, mbs-5586 has been updated
       via  http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=1ae3bf7fc82e0f4f453d94596652520f40852d33 (commit)
      from  http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=26eee99675a4ecadea2cf7060732b659b251c864 (commit)

Summary of changes:
 lib/MusicBrainz/Server/Controller.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1ae3bf7fc82e0f4f453d94596652520f40852d33
Author: warp <[email protected]>
Date:   Mon Jan 21 12:19:59 2013 +0100

    MBS-5586, do not change the order of post_creation and on_creation hooks.

diff --git a/lib/MusicBrainz/Server/Controller.pm b/lib/MusicBrainz/Server/Controller.pm
index 31a7c9c..a0f4d0c 100644
--- a/lib/MusicBrainz/Server/Controller.pm
+++ b/lib/MusicBrainz/Server/Controller.pm
@@ -142,8 +142,8 @@ sub edit_action
 
             # the on_creation hook is only called when an edit was entered.
             # the post_creation hook is always called.
-            $opts{on_creation}->($edit, $form) if $edit && exists $opts{on_creation};
             $opts{post_creation}->($edit, $form) if exists $opts{post_creation};
+            $opts{on_creation}->($edit, $form) if $edit && exists $opts{on_creation};
         });
 
         return $edit;

-----------------------------------------------------------------------


hooks/post-receive
-- 
mb_server