X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=RooPostTrait.php;h=456aa7aa74fde6a79c2611ea8e8561f75ab5d5a8;hp=ba64ecbe5a2830288f09cd9bde22af133ed0ce0c;hb=refs%2Fheads%2Fwip_alan_T6343_generic_progress_bar_delete;hpb=ddb5200998c601768a61e9235be89a7625cc5d31 diff --git a/RooPostTrait.php b/RooPostTrait.php index ba64ecbe..456aa7aa 100644 --- a/RooPostTrait.php +++ b/RooPostTrait.php @@ -170,7 +170,8 @@ trait Pman_Core_RooPostTrait { $affects = array(); - $all_links = $GLOBALS['_DB_DATAOBJECT']['LINKS'][$x->_database]; + $all_links = $x->databaseLinks(); + foreach($all_links as $tbl => $links) { foreach($links as $col => $totbl_col) { $to = explode(':', $totbl_col); @@ -313,7 +314,7 @@ trait Pman_Core_RooPostTrait { function update($x, $req, $with_perm_check = true) { if ( $with_perm_check && !$this->checkPerm($x,'E', $req) ) { - $this->jerr("PERMISSION DENIED - No Edit permissions on this element???"); + $this->jerr("PERMISSION DENIED - No Edit permissions on this element"); } // check any locks..