aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2009-12-15 21:07:49 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2009-12-15 21:07:49 +0000
commitea6a5229e4dd2bc4bd4be0af24ed2dc8eb91d4b3 (patch)
tree2fa9f102bc1db18986d99c0b3c865b818c4d60cc
parent07db3c0923fc0bcb88a56b8c3e7007b3e4346398 (diff)
parentc528be7a1543fd5ece7e0c37e582a3c991d45338 (diff)
downloadreaction-ea6a5229e4dd2bc4bd4be0af24ed2dc8eb91d4b3.tar.gz
reaction-ea6a5229e4dd2bc4bd4be0af24ed2dc8eb91d4b3.zip
r32620@martha (orig r1258): groditi | 2009-12-15 16:05:20 -0500
after_create on_create_apply compat
-rw-r--r--lib/Reaction/UI/Controller/Collection/CRUD.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Reaction/UI/Controller/Collection/CRUD.pm b/lib/Reaction/UI/Controller/Collection/CRUD.pm
index fc7585e..21faa4a 100644
--- a/lib/Reaction/UI/Controller/Collection/CRUD.pm
+++ b/lib/Reaction/UI/Controller/Collection/CRUD.pm
@@ -45,6 +45,11 @@ sub on_delete_all_close_callback {
sub on_create_apply_callback {
my ($self, $c, $vp, $result) = @_;
+ if( $self->can('after_create_callback') ){
+ $c->log->debug("'after_create_callback' has been replaced with 'on_create_apply_callback' and is deprecated.");
+ shift @_;
+ return $self->after_create_callback(@_);
+ }
return $self->redirect_to
( $c, 'update', [ @{$c->req->captures}, $result->id ] );
}