mirror of
https://github.com/getgrav/grav.git
synced 2026-07-21 04:01:44 +02:00
Fix saving array fields
This commit is contained in:
@@ -238,6 +238,9 @@ class Blueprint
|
||||
|
||||
if ($rule) {
|
||||
// Item has been defined in blueprints.
|
||||
if (is_array($field) && count($field) == 1 && reset($field) == '') {
|
||||
continue;
|
||||
}
|
||||
$field = Validation::filter($field, $rule);
|
||||
} elseif (is_array($field) && is_array($val)) {
|
||||
// Array has been defined in blueprints.
|
||||
|
||||
Reference in New Issue
Block a user