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)
|
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(),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user