[mb-commits] branch, mbs-5586, updated. MBS-5586, both post_creation and on_creation hooks should be called from with...
MusicBrainz Git Server <[email protected]> Tue, 15 Jan 2013 16:08:19 +0000
| Newsgroups | gmane.comp.audio.musicbrainz.cvs |
|---|---|
| Message-ID | <E1Tv93j-0007Sn-Ev@wiley> |
The branch, mbs-5586 has been updated
via http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=26eee99675a4ecadea2cf7060732b659b251c864 (commit)
from http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=f0b7974de504d3b076ae09fea31f12834cfccbab (commit)
Summary of changes:
lib/MusicBrainz/Server/Controller.pm | 10 +++++-----
1 files changed, 5 insertions(+), 5 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 26eee99675a4ecadea2cf7060732b659b251c864
Author: warp <[email protected]>
Date: Tue Jan 15 16:25:21 2013 +0100
MBS-5586, both post_creation and on_creation hooks should be called from within the transaction.
diff --git a/lib/MusicBrainz/Server/Controller.pm b/lib/MusicBrainz/Server/Controller.pm
index ce67950..31a7c9c 100644
--- a/lib/MusicBrainz/Server/Controller.pm
+++ b/lib/MusicBrainz/Server/Controller.pm
@@ -139,12 +139,12 @@ sub edit_action
@options,
%extra
);
- });
- # 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};
+ # 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};
+ });
return $edit;
}
-----------------------------------------------------------------------
hooks/post-receive
--
mb_server