Fix #776 : Add check on thumbtitle / business fields

This commit is contained in:
Romain Neutron
2012-07-03 13:35:57 +02:00
parent d0483baab0
commit 40270b9618
2 changed files with 38 additions and 2 deletions

View File

@@ -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;
}