Optionen ohne Leere
This commit is contained in:
parent
fca348347c
commit
15fcc900d3
@ -21,7 +21,7 @@ class Article
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params Array
|
||||
* @param $params \Array
|
||||
*/
|
||||
public function setParams($params)
|
||||
{
|
||||
@ -83,6 +83,9 @@ class Article
|
||||
$temp = array();
|
||||
/** @var Option\Type\Base $option */
|
||||
foreach ($this->options as $option) {
|
||||
if($option->getValue() == '' && $option->getRawValue() == '') {
|
||||
continue;
|
||||
}
|
||||
$temp[$option->getId()] = array(
|
||||
'name' => $option->getName(),
|
||||
'value' => $option->getValue(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user