projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
213e501
)
Fix #6655 - Dont move image if onDelete has dependancies
author
Alan Knowles
<alan@roojs.com>
Mon, 29 Mar 2021 06:54:36 +0000
(14:54 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 29 Mar 2021 06:54:36 +0000
(14:54 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
4c4feed
..
32a08d3
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-212,6
+212,10
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
function beforeDelete($dependants_array, $roo)
{
+ if (!empty($dependants_array)) {
+ return;
+ }
+
$opts = HTML_FlexyFramework::get()->Pman;
$deldir = $opts['storedir']. '/_deleted_images_';
if (!file_exists( $deldir )) {