Skip to content

Commit

Permalink
Merge branch 'hotfix-0.7.1' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicWatson committed Nov 30, 2023
2 parents b57da0a + 50313b0 commit 5890fe3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.7.1

* Fix issue with preDeleteObjectData interceptor that errors for objects with no id field

## v0.7.0

* Re-introduced support for bundled enhanced record view of Preside 10.24.0
Expand Down
4 changes: 4 additions & 0 deletions interceptors/ContentDependencyTrackerInterceptor.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ component {
var objectName = interceptData.objectName ?: "";
var idField = presideObjectService.getIdField( objectName=objectName );

if ( !Len( idField ) ) {
return;
}

try {
var records = presideObjectService.selectData( argumentCollection=arguments.interceptData, selectFields=[ idField ] );

Expand Down

0 comments on commit 5890fe3

Please sign in to comment.