Skip to content

Commit

Permalink
Merge pull request #8279 from escopecz/m3.entity-filters
Browse files Browse the repository at this point in the history
Segment filters based on entity select box fixes
  • Loading branch information
dongilbert committed Jan 7, 2020
2 parents 53d16e1 + 2a669a9 commit 8157f98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/bundles/LeadBundle/Views/List/form.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ class="segment-filter <?php echo $icon; ?>">
<select class="form-control not-chosen <?php echo $template; ?>" name="leadlist[filters][__name__][filter]" id="leadlist_filters___name___filter"<?php echo $attr; ?>>
<?php
if (isset($form->vars[$dataKey])):
foreach ($form->vars[$dataKey] as $value => $label):
if (is_array($label)):
echo "<optgroup label=\"$value\">\n";
foreach ($label as $optionValue => $optionLabel):
foreach ($form->vars[$dataKey] as $label => $value):
if (is_array($value)):
echo "<optgroup label=\"$label\">\n";
foreach ($value as $optionLabel => $optionValue):
echo "<option value=\"$optionValue\">$optionLabel</option>\n";
endforeach;
echo "</optgroup>\n";
Expand Down

0 comments on commit 8157f98

Please sign in to comment.