mirror of
https://github.com/processwire/processwire.git
synced 2025-08-21 22:06:12 +02:00
Fix issue processwire/processwire-issues#1001
This commit is contained in:
@@ -1242,6 +1242,8 @@ class InputfieldFile extends Inputfield implements InputfieldItemList, Inputfiel
|
||||
if($language->isDefault()) $f->val($v);
|
||||
$f->set("value$language->id", $v);
|
||||
}
|
||||
} else if($f instanceof InputfieldCheckbox) {
|
||||
if($value) $f->attr('checked', 'checked');
|
||||
} else {
|
||||
$f->val($value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user