[TASK] Streamline button order in list module / multi selection mode
[Packages/TYPO3.CMS.git] / typo3 / sysext / recordlist / Classes / RecordList / DatabaseRecordList.php
index 2d16dfd..95764d2 100644 (file)
@@ -1148,7 +1148,12 @@ class DatabaseRecordList extends AbstractDatabaseRecordList
                             $cells = $hookObject->renderListHeaderActions($table, $currentIdList, $cells, $this);
                         }
                     }
-                    $theData[$fCol] = '<div class="btn-group" role="group">' . implode('', $cells) . '</div>';
+                    $theData[$fCol] = '';
+                    if (isset($cells['edit']) && isset($cells['delete'])) {
+                        $theData[$fCol] .= '<div class="btn-group" role="group">' . $cells['edit'] . $cells['delete'] . '</div>';
+                        unset($cells['edit'], $cells['delete']);
+                    }
+                    $theData[$fCol] .= '<div class="btn-group" role="group">' . implode('', $cells) . '</div>';
                     break;
                 case '_CONTROL_':
                     // Control panel: