[BUGFIX] Checkbox for mass-action also if only publish/swap-permission
authorRobert Heel <typo3.org@bobosch.de>
Sun, 20 Nov 2011 23:26:21 +0000 (00:26 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 12 Apr 2013 21:04:02 +0000 (23:04 +0200)
If user has only publish/swap permission show the
mass-action checkbox as well.

Change-Id: I04ccd6f08f3f56021ab29d91ac8aba7619f1e9cd
Fixes: #31122
Releases: 4.5, 4.6, 4.7
Reviewed-on: http://review.typo3.org/6756
Reviewed-by: Stefan Neufeind
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-on: https://review.typo3.org/13950

typo3/sysext/workspaces/Resources/Public/JavaScript/component.js
typo3/sysext/workspaces/Resources/Public/JavaScript/grid.js

index d6b7dfd..a3a3e0b 100644 (file)
@@ -190,7 +190,7 @@ TYPO3.Workspaces.RowExpander = new Ext.grid.RowExpander({
        hideable: false,
        getRowClass : function(record, rowIndex, p, ds) {
                cssClass = '';
-               if (!record.json.allowedAction_nextStage && !record.json.allowedAction_prevStage) {
+               if (!record.json.allowedAction_nextStage && !record.json.allowedAction_prevStage && !record.json.allowedAction_swap) {
                        cssClass = 'typo3-workspaces-row-disabled ';
                }
                if(this.state[record.id]) {
index 4d0ad19..78a731e 100644 (file)
@@ -71,7 +71,7 @@ TYPO3.Workspaces.SelectionModel = new Ext.grid.CheckboxSelectionModel({
        hidden: true,
        listeners: {
                beforerowselect : function (selection, rowIndex, keep, rec) {
-                       if (rec.json.allowedAction_nextStage || rec.json.allowedAction_prevStage) {
+                       if (rec.json.allowedAction_nextStage || rec.json.allowedAction_prevStage || rec.json.allowedAction_swap) {
                                return true;
                        } else {
                                return false;
@@ -169,4 +169,4 @@ TYPO3.Workspaces.WorkspaceGrid = new Ext.grid.GridPanel({
        }),
        bbar : TYPO3.Workspaces.Toolbar.FullBottomBar,
        tbar : TYPO3.Workspaces.Toolbar.FullTopToolbar
-});
\ No newline at end of file
+});