mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix #776 : Add check on thumbtitle / business fields
This commit is contained in:
@@ -574,6 +574,10 @@ class databox_field implements cache_cacheableInterface
|
||||
{
|
||||
$this->Business = ! ! $boolean;
|
||||
|
||||
if($this->Business) {
|
||||
$this->thumbtitle = '0';
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@@ -666,6 +670,10 @@ class databox_field implements cache_cacheableInterface
|
||||
{
|
||||
$this->thumbtitle = $value;
|
||||
|
||||
if($this->thumbtitle != '0') {
|
||||
$this->Business = false;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user