Skip to content

Commit

Permalink
Merge pull request #22 from tardinha/master
Browse files Browse the repository at this point in the history
Update list source
  • Loading branch information
Nathan authored Jan 7, 2019
2 parents 748071e + 096b7bf commit 94a84c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fields/DynamicListCheckboxSetField.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct($name, $title = null, $source = null, $value = "", $

if (is_string($source)) {
// it should be the name of a list, lets get all its contents
$dynamicList = DataObject::get_one('DynamicList', '"Title" = \''.Convert::raw2sql($source).'\'');
$dynamicList = DynamicList::get_dynamic_list($source);
$source = array();
if ($dynamicList) {
$items = $dynamicList->Items();
Expand Down

0 comments on commit 94a84c4

Please sign in to comment.