From d1e6dfb61ed271dc713aec144e27e9f824fbb5ea Mon Sep 17 00:00:00 2001 From: Julio Cesar Laura Date: Fri, 23 May 2014 13:45:25 -0400 Subject: [PATCH] BUG 12395 History log no refleja verdaderos datos historicos IMPROVEMENTS 2 --- gulliver/system/class.xmlform.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 3f1fe35a8..cc3b2d653 100755 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -3616,6 +3616,10 @@ class XmlForm_Field_Dropdown extends XmlForm_Field $html = $html . ""; } + if ($value !== $findValue) { + $html .= ""; + } + $html .= ''; if ($readOnlyField != '') { $html .= '" . $option . ""; } - if (count($valuesFound) < count($value)) { + if (count($valuesFound) - 1 < count($value)) { $valuesNotFound = array_diff($value, $valuesFound); foreach ($valuesNotFound as $option) { $html .= ""; @@ -3766,7 +3770,7 @@ class XmlForm_Field_Listbox extends XmlForm_Field foreach ($this->sqlOption as $optionName => $option) { $html .= "name . "]\" name=\"form[" . $this->name . "][]\" value=\"" . ((in_array( $optionName . "", $value )) ? $optionName : "__NULL__") . "\">"; } - if (count($valuesFound) < count($value)) { + if (count($valuesFound) - 1 < count($value)) { $valuesNotFound = array_diff($value, $valuesFound); foreach ($valuesNotFound as $option) { $html .= "name . "]\" name=\"form[" . $this->name . "][]\" value=\"" . $option . "\">"; @@ -3968,7 +3972,7 @@ class XmlForm_Field_CheckGroup extends XmlForm_Field $html .= "NSFieldType() . "class=\"FormCheck\" type=\"checkbox\" id=\"form[" . $this->name . "][" . $optionName . "]\" value=\"" . $optionName . "\"" . (in_array( $optionName . "", $value ) ? " checked=\"checked\" " : "") . " disabled=\"disabled\">
"; $html .= "name . "][]\" value=\"" . ((in_array( $optionName . "", $value )) ? $optionName : "__NULL__") . "\">"; } - if (count($valuesFound) < count($value)) { + if (count($valuesFound) - 1 < count($value)) { $valuesNotFound = array_diff($value, $valuesFound); foreach ($valuesNotFound as $option) { $html .= "NSFieldType() . "class=\"FormCheck\" type=\"checkbox\" id=\"form[" . $this->name . "][" . $option . "]\" value=\"" . $option . "\" checked=\"checked\" disabled=\"disabled\">
";