From 31db1b7abf51bd55c34c4baa2c6e4a06b339f145 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 21 Nov 2019 21:47:06 +0300 Subject: [PATCH] feat(core): add new field property `default` instead of `value` #303 ### BREAKING CHANGES Rename property `value` to `default` for all fieldsets where it is used. --- flextype/core/Forms.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flextype/core/Forms.php b/flextype/core/Forms.php index 8e8766fd..418ac658 100644 --- a/flextype/core/Forms.php +++ b/flextype/core/Forms.php @@ -209,8 +209,8 @@ class Forms { if (Arr::keyExists($values, $element)) { $field_value = Arr::get($values, $element); - } elseif(Arr::keyExists($properties, 'value')) { - $field_value = $properties['value']; + } elseif(Arr::keyExists($properties, 'default')) { + $field_value = $properties['default']; } else { $field_value = ''; }