Optionen ohne Leere

This commit is contained in:
Thomas Peterson 2016-02-18 16:04:01 +01:00
parent fca348347c
commit 15fcc900d3

View File

@ -21,7 +21,7 @@ class Article
} }
/** /**
* @param $params Array * @param $params \Array
*/ */
public function setParams($params) public function setParams($params)
{ {
@ -83,6 +83,9 @@ class Article
$temp = array(); $temp = array();
/** @var Option\Type\Base $option */ /** @var Option\Type\Base $option */
foreach ($this->options as $option) { foreach ($this->options as $option) {
if($option->getValue() == '' && $option->getRawValue() == '') {
continue;
}
$temp[$option->getId()] = array( $temp[$option->getId()] = array(
'name' => $option->getName(), 'name' => $option->getName(),
'value' => $option->getValue(), 'value' => $option->getValue(),