Skip to content

Commit

Permalink
Adjust params for getActions function
Browse files Browse the repository at this point in the history
  • Loading branch information
theboxer committed Oct 22, 2019
1 parent 84b9a87 commit d708d0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions manager/assets/modext/widgets/core/modx.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ Ext.extend(MODx.grid.Grid,Ext.grid.EditorGridPanel,{
}

,actionsColumnRenderer: function(value, metaData, record, rowIndex, colIndex, store) {
var actions = this.getActions.apply(this, arguments);
var actions = this.getActions.apply(this, [record, rowIndex, colIndex, store]);
if (this.config.disableContextMenuAction !== true) {
actions.push({
text: _('context_menu'),
Expand All @@ -624,7 +624,7 @@ Ext.extend(MODx.grid.Grid,Ext.grid.EditorGridPanel,{
});
}

,getActions: function(value, metaData, record, rowIndex, colIndex, store) {
,getActions: function(record, rowIndex, colIndex, store) {
return [];
}

Expand Down
2 changes: 1 addition & 1 deletion manager/assets/modext/widgets/system/modx.grid.context.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ Ext.extend(MODx.grid.Context,MODx.grid.Grid,{
this.refresh();
}

,getActions: function(value, metaData, record, rowIndex, colIndex, store) {
,getActions: function(record, rowIndex, colIndex, store) {
var permissions = record.data.perm;
var actions = [];

Expand Down

0 comments on commit d708d0c

Please sign in to comment.