diff --git a/ChangeLog b/ChangeLog index ddb4ca1e5a4..389f470eb46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ English Dolibarr ChangeLog ***** ChangeLog for 3.4.1 compared to 3.4.0 ***** Fix: [ bug #1029 ] Tulip numbering mask Fix: Supplier invoice and supplier order are not displayed into object link into agenda event card +Fix: update extrafield do not display immediatly after update ***** ChangeLog for 3.4 compared to 3.3.* ***** For users: diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index a1515eff70d..49f038062ab 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -2221,7 +2221,14 @@ abstract class CommonObject foreach($extrafields->attribute_label as $key=>$label) { $colspan='3'; - $value=(isset($_POST["options_".$key])?$_POST["options_".$key]:$this->array_options["options_".$key]); + switch($mode) { + case "view": + $value=$this->array_options["options_".$key]; + break; + case "edit": + $value=(isset($_POST["options_".$key])?$_POST["options_".$key]:$this->array_options["options_".$key]); + break; + } if ($extrafields->attribute_type[$key] == 'separate') { $out .= $extrafields->showSeparator($key);