Skip to content

Commit

Permalink
#26201 include in 23.01.14
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Mar 15, 2024
1 parent f368000 commit 209a48a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,13 @@ private void internalDeleteBundleAndDependencies (final String bundleId, final U
public void deleteBundleAndDependencies(final String bundleId, final User user) throws DotDataException {

try {
final PublishAuditStatus bundle = this.publishAuditAPI.getPublishAuditStatus(bundleId);
if (null != bundle) {
final PublishAuditStatus publishAuditStatus =
this.publishAuditAPI.getPublishAuditStatus(bundleId);
Bundle bundle = null;
if (!UtilMethods.isSet(publishAuditStatus)) {
bundle = this.getBundleById(bundleId);
}
if (UtilMethods.isSet(publishAuditStatus) || UtilMethods.isSet(bundle)) {

this.internalDeleteBundleAndDependencies(bundleId, user);
} else {
Expand Down
1 change: 1 addition & 0 deletions hotfix_tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,4 @@ This maintenance release includes the following code fixes:
171. https://github.com/dotCMS/core/issues/25653 : Importing Category lists via CSV - import button is disabled #25653
172. https://github.com/dotCMS/core/issues/26815 : Unable to compare history of older versions (Older than latest 20) #26815
173. https://github.com/dotCMS/core/issues/26224 : Need to add the user who create the bundle when you have bundles from other users #26224
174. https://github.com/dotCMS/core/issues/26201 : Deletion of Unpublished Bundles through API #26201

0 comments on commit 209a48a

Please sign in to comment.