From 9422a4bd1d3b7bc3a7e5b6ff2e4469721ec77ae1 Mon Sep 17 00:00:00 2001 From: lvessiller Date: Wed, 5 Oct 2022 09:32:37 +0200 Subject: [PATCH] FIX uses object fetch method in setValueFrom if method exists --- htdocs/core/class/commonobject.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 7f30878d566..dcec2480137 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -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);