From my open-ils.acq.lineitem.cancel branch
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16078
dcc99617-32d9-48b4-a31d-
7c20da2025e4
my $cat_req = $cat_service->request('open-ils.cat.asset.copy.fleshed.batch.update', $mgr->editor->authtoken, $copies);
my $cat_result = $cat_req->recv;
$cat_service->disconnect;
- if ($cat_result != 1) { # failed to delete copies
+ if (!$cat_result or $cat_result->content != 1) { # failed to delete copies
return new OpenILS::Event(
"ACQ_NOT_CANCELABLE", "note" => "lineitem $li_id", "payload" => $cat_result
);