| @@ 116-119 (lines=4) @@ | ||
| 113 | ||
| 114 | $column = $field->column(); | |
| 115 | $columns = is_array($column) ? $column : [$column]; | |
| 116 |             if ($field instanceof Field\MultipleSelect) { | |
| 117 | $availInput[$column] = array_filter($availInput[$column], 'strlen'); | |
| 118 | $availInput[$column] = $availInput[$column] ?: null; | |
| 119 | } | |
| 120 | /* | |
| 121 | * | |
| 122 | * For single column field format rules to: | |
| @@ 163-167 (lines=5) @@ | ||
| 160 | } | |
| 161 | $column = $field->column(); | |
| 162 | $columns = is_array($column) ? $column : [$column]; | |
| 163 |             if ($field instanceof Field\MultipleSelect) { | |
| 164 |                 foreach ($keys as $key) { | |
| 165 | $availInput[$key][$column] = array_filter($availInput[$key][$column], 'strlen') ?: null; | |
| 166 | } | |
| 167 | } | |
| 168 | ||
| 169 |             $newColumn = call_user_func_array('array_merge', array_map(function ($u) use ($columns, $rel) { | |
| 170 |                 return array_map(function ($k, $v) use ($u, $rel) { | |