Update commonobject.class.php

This commit is contained in:
Frans Bosman 2019-07-03 06:59:52 +02:00 committed by GitHub
parent 3e91fdda77
commit 221c202add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5026,7 +5026,7 @@ abstract class CommonObject
//dol_syslog("attributeLabel=".$attributeLabel, LOG_DEBUG);
//dol_syslog("attributeType=".$attributeType, LOG_DEBUG);
if (!empty($attrfieldcomputed))
if ((!empty($attrfieldcomputed) && (! empty($conf->global->MAIN_STORE_COMPUTED_EXTRAFIELDS)))
{
$value = dol_eval($attrfieldcomputed, 1, 0);
$new_array_options[$key] = $value;