From 591818034401974d98f9992a2dd93ad339bc0b42 Mon Sep 17 00:00:00 2001 From: Teon Ooi Date: Tue, 30 Jul 2024 10:53:31 +0800 Subject: [PATCH] DASH-29 Fix export delete query column. --- handlers/admin/datamanager/admin_dashboard.cfc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/handlers/admin/datamanager/admin_dashboard.cfc b/handlers/admin/datamanager/admin_dashboard.cfc index 4117549..f190c9b 100644 --- a/handlers/admin/datamanager/admin_dashboard.cfc +++ b/handlers/admin/datamanager/admin_dashboard.cfc @@ -96,11 +96,13 @@ component extends="preside.system.base.AdminHandler" { QueryAddColumn( records, "canDelete", canDelete ); QueryAddColumn( records, "canClone" , canClone ); - QueryDeleteColumn( records, "owner_id" ); - QueryDeleteColumn( records, "view_groups_list" ); - QueryDeleteColumn( records, "view_users_list" ); - QueryDeleteColumn( records, "edit_groups_list" ); - QueryDeleteColumn( records, "edit_users_list" ); + if ( StructIsEmpty( rc ) ) { + QueryDeleteColumn( records, "owner_id" ); + QueryDeleteColumn( records, "view_groups_list" ); + QueryDeleteColumn( records, "view_users_list" ); + QueryDeleteColumn( records, "edit_groups_list" ); + QueryDeleteColumn( records, "edit_users_list" ); + } } private array function getRecordActionsForGridListing( event, rc, prc, args={} ) {