Skip to content
Snippets Groups Projects
Commit 9475d1e0 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

dev #48349 : current value without version value is a modification

parent 2766053c
Branches
Tags
2 merge requests!2334Master,!2104Dev#48349 ux versionning
......@@ -138,8 +138,12 @@ class ZendAfi_Form_Decorator_VersionCompare extends Zend_Form_Decorator_Abstract
protected function _isSimpleModified($name, $value) {
$datas = $this->getOption('datas');
return $datas
&& array_key_exists($name, $datas)
&& $value != $datas[$name];
if (!$datas)
return false;
if (array_key_exists($name, $datas))
return $value != $datas[$name];
return $value ? true : false;
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment