diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-12-15 21:05:20 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-12-15 21:05:20 +0000 |
commit | c528be7a1543fd5ece7e0c37e582a3c991d45338 (patch) | |
tree | 2fa9f102bc1db18986d99c0b3c865b818c4d60cc | |
parent | f1a74541734521d2b5013bcd577860d98ff727f5 (diff) | |
download | reaction-c528be7a1543fd5ece7e0c37e582a3c991d45338.tar.gz reaction-c528be7a1543fd5ece7e0c37e582a3c991d45338.zip |
after_create on_create_apply compat
-rw-r--r-- | lib/Reaction/UI/Controller/Collection/CRUD.pm | 5 |
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 ] ); } |