Update commonobject.class.php

This commit is contained in:
Laurent Destailleur 2021-10-16 19:10:50 +02:00 committed by GitHub
parent bbe867a7a9
commit 9469c0dc2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9058,7 +9058,9 @@ abstract class CommonObject
$columnName = $deleteFromObject[2];
$TMoreSQL = array();
$more_sql = $deleteFromObject[3];
if (!empty($more_sql)) $TMoreSQL['customsql'] = $more_sql;
if (!empty($more_sql)) {
$TMoreSQL['customsql'] = $more_sql;
}
if (dol_include_once($filePath)) {
$childObject = new $className($this->db);
if (method_exists($childObject, 'deleteByParentField')) {