2
0
forked from Wavyzz/dolibarr

Fix update extrafield do not display immediatly

This commit is contained in:
Florian Henry
2013-08-12 14:30:42 +02:00
parent ba58ab153b
commit 26d1352de4
2 changed files with 9 additions and 1 deletions

View File

@@ -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:

View File

@@ -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);