Skip to content

Commit

Permalink
Merge branch 'feature-ADMINTHEME-53_data-card' into release-1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicWatson committed Jan 29, 2025
2 parents ab31f2d + 10fe5b0 commit 0156be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/admin/layout/DataCardGrid.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ component {
args.currentPage = rc.page ?: 1;
args.maxRows = rc.len ?: getSetting( name="adminTheme.defaults.dataCardGrid.resultsPerPage", defaultValue=12 );
args.showAddNewRecordCard = isTrue( args.showAddNewRecordCard ?: true ) && args.currentPage == 1;
args.showAddNewRecordCard = args.showAddNewRecordCard && runEvent( event="admin.datamanager._checkPermission", private=true, prepostExempt=true, eventArguments={ key="addRecord", object=arguments.objectName, throwOnError=false } );
args.showAddNewRecordCard = args.showAddNewRecordCard && runEvent( event="admin.datamanager._checkPermission", private=true, prepostExempt=true, eventArguments={ key="add", object=arguments.objectName, throwOnError=false } );
args.offsetRows = args.showAddNewRecordCard ? -1 : ( rc.offset ?: 0 );

args.totalResults = _getRecords( objectName=arguments.objectName, search=args.search, recordCountOnly=true );
Expand Down

0 comments on commit 0156be3

Please sign in to comment.