|
@@ -118,9 +118,9 @@ |
|
|
block discarded – undo |
|
118
|
118
|
// Configure position of where to put the calendarize fields |
|
119
|
119
|
// Either after a field or before a field; after takes precedence, if defined |
|
120
|
120
|
// Parameter value is the single TCA field name |
|
121
|
|
- $position = isset($configuration['addColumnsAfter']) ? 'after:' . \trim($configuration['addColumnsAfter']): ''; |
|
122
|
|
- if ( !$position && isset($configuration['addColumnsBefore']) ) { |
|
123
|
|
- $position = 'before:'. \trim($configuration['addColumnsBefore']); |
|
|
121
|
+ $position = isset($configuration['addColumnsAfter']) ? 'after:' . \trim($configuration['addColumnsAfter']) : ''; |
|
|
122
|
+ if (!$position && isset($configuration['addColumnsBefore'])) { |
|
|
123
|
+ $position = 'before:' . \trim($configuration['addColumnsBefore']); |
|
124
|
124
|
} |
|
125
|
125
|
$GLOBALS['TCA'][$tableName]['columns'][$fieldName] = [ |
|
126
|
126
|
'label' => 'Calendarize', |
Please login to merge, or discard this patch.