mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Merge pull request #664 from nlegoff/fix_1343
[3.8] Fix #1343 Display default name if label is empty
This commit is contained in:
@@ -497,7 +497,7 @@ class databox_field implements cache_cacheableInterface
|
||||
throw new InvalidArgumentException(sprintf('Code %s is not defined', $code));
|
||||
}
|
||||
|
||||
return isset($this->labels[$code]) ? $this->labels[$code] : $this->name;
|
||||
return isset($this->labels[$code]) && '' !== $this->labels[$code] ? $this->labels[$code] : $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user