FIX uses object fetch method in setValueFrom if method exists

This commit is contained in:
lvessiller 2022-10-05 09:32:37 +02:00
parent 946c79ced0
commit 9422a4bd1d

View File

@ -2072,7 +2072,7 @@ abstract class CommonObject
if ($resql) {
if ($trigkey) {
// call trigger with updated object values
if (empty($this->fields) && method_exists($this, 'fetch')) {
if (method_exists($this, 'fetch')) {
$result = $this->fetch($id);
} else {
$result = $this->fetchCommon($id);