NULL no longer returned by $BRAND_ID and $LOGO_IMAGE_ID

This commit is contained in:
Franck Allimant
2014-07-01 01:21:59 +02:00
parent 53b58515e0
commit 544060d062
2 changed files with 2 additions and 2 deletions

View File

@@ -200,7 +200,7 @@ class Brand extends BaseI18nLoop implements PropelSearchLoopInterface, SearchLoo
->set("META_KEYWORDS" , $brand->getVirtualColumn('i18n_META_KEYWORDS'))
->set("POSITION" , $brand->getPosition())
->set("VISIBLE" , $brand->getVisible())
->set("LOGO_IMAGE_ID" , $brand->getLogoImageId())
->set("LOGO_IMAGE_ID" , $brand->getLogoImageId() ?: 0)
;
$loopResult->addRow($loopResultRow);

View File

@@ -1023,7 +1023,7 @@ class Product extends BaseI18nLoop implements PropelSearchLoopInterface, SearchL
->set("TEMPLATE" , $product->getTemplateId())
->set("DEFAULT_CATEGORY" , $default_category_id)
->set("TAX_RULE_ID" , $product->getTaxRuleId())
->set("BRAND_ID" , $product->getBrandId())
->set("BRAND_ID" , $product->getBrandId() ?: 0)
;