Skip to content

Commit

Permalink
Update to support Inputfield module config settings that are not pred…
Browse files Browse the repository at this point in the history
…efined per issue mentioned by Macrura.
  • Loading branch information
ryancramerdesign committed Jun 21, 2016
1 parent c6f6036 commit c0b30db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wire/core/Field.php
Expand Up @@ -786,7 +786,12 @@ public function ___getInputfield(Page $page, $contextStr = '') {

// custom field settings
foreach($this->data as $key => $value) {
if($inputfield->hasSetting($key) || $inputfield->hasAttribute($key)) {
if($inputfield instanceof InputfieldWrapper) {
$has = $inputfield->hasSetting($key) || $inputfield->hasAttribute($key);
} else {
$has = $inputfield->has($key);
}
if($has) {
if(is_array($this->trackGets)) $this->trackGets($key);
$inputfield->set($key, $value);
}
Expand Down

0 comments on commit c0b30db

Please sign in to comment.