From 59907d6428c0412b462bdc6f891d29fa63a8ea7c Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 22 Dec 2008 18:53:37 +0000 Subject: [PATCH] take advantage of cseditor's magic logging and event creation by calling it's exported method git-svn-id: svn://svn.open-ils.org/ILS/trunk@11648 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm b/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm index 1f22b86911..621ecb86fa 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm @@ -188,7 +188,9 @@ sub CRUD_action_object_permcheck { return $obj; } - my $val = $e->session->request("open-ils.cstore.direct.$o_type.$self->{action}" => $obj )->gather(1); + $o_type =~ s/\./_/og; + my $method = $self->{action} . "_$o_type"; + $e->$method($obj) or return $e->die_event; $e->commit; return $val; -- 2.11.0