@@ 221-227 (lines=7) @@ | ||
218 | } |
|
219 | ||
220 | if (($field instanceof \Encore\Admin\Form\Field\Hidden) || $value != $field->original()) { |
|
221 | if (is_array($columns)) { |
|
222 | foreach ($columns as $name => $column) { |
|
223 | array_set($prepared, $column, $value[$name]); |
|
224 | } |
|
225 | } elseif (is_string($columns)) { |
|
226 | array_set($prepared, $columns, $value); |
|
227 | } |
|
228 | } |
|
229 | } |
|
230 |
@@ 862-868 (lines=7) @@ | ||
859 | ||
860 | $value = $field->prepare($value); |
|
861 | ||
862 | if (is_array($columns)) { |
|
863 | foreach ($columns as $name => $column) { |
|
864 | array_set($prepared, $column, $value[$name]); |
|
865 | } |
|
866 | } elseif (is_string($columns)) { |
|
867 | array_set($prepared, $columns, $value); |
|
868 | } |
|
869 | } |
|
870 | ||
871 | return $prepared; |