Merge branch '8.0' of git@github.com:Dolibarr/dolibarr.git into 8.0
This commit is contained in:
commit
20dbbaf5cc
@ -5053,7 +5053,7 @@ abstract class CommonObject
|
|||||||
* @return int -1=error, O=did nothing, 1=OK
|
* @return int -1=error, O=did nothing, 1=OK
|
||||||
* @see setValueFrom, insertExtraFields
|
* @see setValueFrom, insertExtraFields
|
||||||
*/
|
*/
|
||||||
function updateExtraField($key, $trigger, $userused)
|
function updateExtraField($key, $trigger=null, $userused=null)
|
||||||
{
|
{
|
||||||
global $conf,$langs,$user;
|
global $conf,$langs,$user;
|
||||||
|
|
||||||
@ -6152,6 +6152,11 @@ abstract class CommonObject
|
|||||||
$e = 0;
|
$e = 0;
|
||||||
foreach($extrafields->attributes[$this->table_element]['label'] as $key=>$label)
|
foreach($extrafields->attributes[$this->table_element]['label'] as $key=>$label)
|
||||||
{
|
{
|
||||||
|
if (isset($extrafields->attributes[$this->table_element]['list'][$key])
|
||||||
|
&& empty($extrafields->attributes[$this->table_element]['list'][$key]) && $mode == 'view'){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$enabled = 1;
|
$enabled = 1;
|
||||||
if ($enabled && isset($extrafields->attributes[$this->table_element]['list'][$key]))
|
if ($enabled && isset($extrafields->attributes[$this->table_element]['list'][$key]))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user