Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fields/DynamicOptionsField.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function getInputHtml($value, ElementInterface $element = null): string
$variables['element'] = $element;
//$variables['model'] = $this->model;

$options = Json::decode('['.Craft::$app->getView()->renderString($this->json, $variables).']', true);
$options = Json::decode(Craft::$app->getView()->renderString($this->json, $variables), true);
Craft::$app->getView()->setTemplateMode($oldMode);

// Variables to pass down to our field JavaScript to let it namespace properly
Expand Down