Skip to content

Commit

Permalink
Ensure value works correctly within MultiValueCheckboxField
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkleiner committed Jul 23, 2019
1 parent d201504 commit da6f752
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/fields/MultiValueCheckboxField.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ public function getOptions()
$value = $item->ID;
$title = $item->obj('Title');
} elseif ($item instanceof DBField) {
$value = $index;
$title = $item;
} else {
$value = $index;
$title = DBField::create_field('Text', $item);
}

Expand Down

0 comments on commit da6f752

Please # to comment.