Permalink
Browse files

also render label for falsy choices

  • Loading branch information...
flack committed Dec 16, 2017
1 parent 91229ce commit 43e99e45307ac869e946487ff7d97fbd225c588a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/midcom/datamanager/template/view.php
@@ -245,7 +245,7 @@ public function autocomplete_widget(FormView $view, array $data)
public function choice_widget_collapsed(FormView $view, array $data)
{
if (!empty($data['data'])) {
if (isset($data['data'])) {
foreach ($data['choices'] as $choice) {
if ($data['is_selected']($choice->value, (string) $data['data'])) {
return $this->renderer->humanize($choice->label);

0 comments on commit 43e99e4

Please sign in to comment.