@@ 245-251 (lines=7) @@ | ||
242 | } |
|
243 | ||
244 | if (($field instanceof \Encore\Admin\Form\Field\Hidden) || $value != $field->original()) { |
|
245 | if (is_array($columns)) { |
|
246 | foreach ($columns as $name => $column) { |
|
247 | array_set($prepared, $column, $value[$name]); |
|
248 | } |
|
249 | } elseif (is_string($columns)) { |
|
250 | array_set($prepared, $columns, $value); |
|
251 | } |
|
252 | } |
|
253 | } |
|
254 |
@@ 942-948 (lines=7) @@ | ||
939 | ||
940 | $value = $field->prepare($value); |
|
941 | ||
942 | if (is_array($columns)) { |
|
943 | foreach ($columns as $name => $column) { |
|
944 | array_set($prepared, $column, $value[$name]); |
|
945 | } |
|
946 | } elseif (is_string($columns)) { |
|
947 | array_set($prepared, $columns, $value); |
|
948 | } |
|
949 | } |
|
950 | ||
951 | return $prepared; |