1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-21 22:06:12 +02:00
This commit is contained in:
Ryan Cramer
2019-10-18 10:37:59 -04:00
parent 0154f9defb
commit 34bc5094b0

View File

@@ -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);
}