projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
389cc1c
)
Fix #6639 - Inspection Booking
author
Alan Knowles
<alan@roojs.com>
Wed, 10 Mar 2021 07:10:42 +0000
(15:10 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 10 Mar 2021 07:10:42 +0000
(15:10 +0800)
Pman/Roo.php
patch
|
blob
|
history
diff --git
a/Pman/Roo.php
b/Pman/Roo.php
index
d7b1878
..
350a535
100644
(file)
--- a/
Pman/Roo.php
+++ b/
Pman/Roo.php
@@
-25,7
+25,7
@@
require_once 'Pman.php';
* ... call $roo->jerr() on failure...
*
* BEFORE
* ... 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..
* - 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 ) {
$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;
$errs[] = "Delete failed ({$xx->id})\n".
(isset($xx->err) ? $xx->err : '');
continue;