Skip to content

Commit

Permalink
Fixed element action + relation field bug
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 7, 2024
1 parent b22883c commit eeb80ff
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Fixed a bug where querying elements with `eagerly()` wasn’t working across element types.
- Fixed a SQL error that could occur when querying relations with `eagerly()`.
- Fixed a bug where element actions weren’t working for elements that were added to a relational field.

## 5.0.0-alpha.13 - 2024-02-06

Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/css/cp.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/css/cp.css.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/web/assets/cp/src/js/BaseElementSelectInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -753,9 +753,6 @@ Craft.BaseElementSelectInput = Garnish.Base.extend(
}
}

await Craft.appendHeadHtml(data.headHtml);
await Craft.appendBodyHtml(data.bodyHtml);

if (this.settings.maintainHierarchy) {
await this.selectStructuredElements(elements);
} else {
Expand All @@ -778,6 +775,9 @@ Craft.BaseElementSelectInput = Garnish.Base.extend(
this.modal.enableSelectBtn();
this.modal.hideFooterSpinner();
this.modal.hide();

await Craft.appendHeadHtml(data.headHtml);
await Craft.appendBodyHtml(data.bodyHtml);
},

onModalHide: function () {
Expand Down

0 comments on commit eeb80ff

Please sign in to comment.