From: Alan Knowles Date: Wed, 10 Mar 2021 06:43:59 +0000 (+0800) Subject: Changed Pman/Roo.php X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=refs%2Fheads%2Fwip_alan_T6639_Inspection_Booking Changed Pman/Roo.php --- diff --git a/Pman/Roo.php b/Pman/Roo.php index d7b1878..350a535 100644 --- a/Pman/Roo.php +++ b/Pman/Roo.php @@ -25,7 +25,7 @@ require_once 'Pman.php'; * ... call $roo->jerr() on failure... * * BEFORE - * - beforeDelete($dependants_array, $roo) Argument is an array of un-find/fetched dependant items. + * - beforeDelete($dependants_array, $roo, $request) Argument is an array of un-find/fetched dependant items. * - jerr() will stop insert.. (Prefered) * - return false for fail and set DO->err; * - beforeUpdate($old, $request,$roo) - after update - jerr() will stop insert.. @@ -1246,7 +1246,7 @@ class Pman_Roo extends Pman $match_total = 0; if ( $has_beforeDelete ) { - if ($xx->beforeDelete($match_ar, $this) === false) { + if ($xx->beforeDelete($match_ar, $this, $_REQUEST) === false) { $errs[] = "Delete failed ({$xx->id})\n". (isset($xx->err) ? $xx->err : ''); continue;