| @@ 105-108 (lines=4) @@ | ||
| 102 | ||
| 103 | $column = $field->column(); | |
| 104 | $columns = is_array($column) ? $column : [$column]; | |
| 105 |             if ($field instanceof Field\MultipleSelect) { | |
| 106 | $availInput[$column] = array_filter($availInput[$column], 'strlen'); | |
| 107 | $availInput[$column] = $availInput[$column] ?: null; | |
| 108 | } | |
| 109 | /* | |
| 110 | * | |
| 111 | * For single column field format rules to: | |
| @@ 152-156 (lines=5) @@ | ||
| 149 | } | |
| 150 | $column = $field->column(); | |
| 151 | $columns = is_array($column) ? $column : [$column]; | |
| 152 |             if ($field instanceof Field\MultipleSelect) { | |
| 153 |                 foreach ($keys as $key) { | |
| 154 | $availInput[$key][$column] = array_filter($availInput[$key][$column], 'strlen') ?: null; | |
| 155 | } | |
| 156 | } | |
| 157 | ||
| 158 |             $newColumn = call_user_func_array('array_merge', array_map(function ($u) use ($columns, $rel) { | |
| 159 |                 return array_map(function ($k, $v) use ($u, $rel) { | |