Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Fixed a bug where public registration could fail when sending the activation email, if email verification wasn’t required but the password was deferred. ([#19610](https://github.com/craftcms/cms/issues/19610))
- Fixed a bug where custom fields nested within Content Block fields weren’t editable from element indexes. ([#19602](https://github.com/craftcms/cms/discussions/19602))
- Fixed a bug where nested relational fields weren’t enforcing their “Validate related {type}” setting. ([#19625](https://github.com/craftcms/cms/pull/19625))
- Fixed a bug where newly-created generated fields weren’t immediately available to card previews. ([#19166](https://github.com/craftcms/cms/pull/19166))

## 5.11.1 - 2026-09-02

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions src/web/assets/cp/dist/cp.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
/*!
Base.js, version 1.1a
Copyright 2006-2010, Dean Edwards
License: http://www.opensource.org/licenses/mit-license.php
*/

/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/web/assets/cp/src/js/CustomizeSourcesModal.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** global: Craft */
/** global: Garnish */
import Garnish from '../../../garnish/src';
import $ from 'jquery';

/**
Expand Down
8 changes: 7 additions & 1 deletion src/web/assets/cp/src/js/FieldLayoutDesigner.js
Original file line number Diff line number Diff line change
Expand Up @@ -1974,6 +1974,9 @@ Craft.FieldLayoutDesigner.CardViewDesigner = Garnish.Base.extend({

this.cancelToken = axios.CancelToken.source();

const $form = this.designer.$container.closest('form');
const postData = Craft.expandPostArray(Garnish.getPostData($form));

let response;
try {
response = await Craft.sendActionRequest(
Expand All @@ -1982,7 +1985,10 @@ Craft.FieldLayoutDesigner.CardViewDesigner = Garnish.Base.extend({
{
cancelToken: this.cancelToken.token,
data: {
fieldLayoutConfig: this.designer.config,
fieldLayoutConfig: {
...JSON.parse(this.designer.$configInput.val()),
generatedFields: postData.generatedFields || null,
},
},
}
);
Expand Down
15 changes: 10 additions & 5 deletions src/web/assets/cp/src/js/GeneratedFieldsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@ Craft.GeneratedFieldsTable.Row = Craft.EditableTable.Row.extend({
this.addListener($nameInput, 'input', () => {
const name = Craft.trim($nameInput.val());
const cvd = this.table.cvd;
const value = this.getCheckboxValue();

if (name !== '') {
const $draggable = cvd.findCheckboxByUid(this.uid);
const $draggable = cvd.findCheckboxByValue(value);
if ($draggable?.length) {
cvd.updateCheckboxLabel(this.uid, name);
cvd.updateCheckboxLabel(value, name);
Comment thread
brianjhanson marked this conversation as resolved.
Resolved
} else {
cvd.addCheckbox({
value: `generatedField:${this.uid}`,
value,
labelHtml: name,
data: {
'field-id': this.fieldId,
Expand All @@ -57,13 +58,17 @@ Craft.GeneratedFieldsTable.Row = Craft.EditableTable.Row.extend({
});
}
} else {
cvd.removeCheckbox(this.uid);
cvd.removeCheckbox(value);
}
});
},

getCheckboxValue: function () {
return `generatedField:${this.uid}`;
},

destroy: function () {
this.table.cvd.removeCheckbox(this.uid);
this.table.cvd.removeCheckbox(this.getCheckboxValue());
this.base();
},
});
2 changes: 1 addition & 1 deletion src/web/assets/garnish/dist/garnish.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/garnish/src/Garnish.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import UiLayerManager from './UiLayerManager.js';
*/

// Bail if Garnish is already defined
if (typeof Garnish !== 'undefined') {
if (typeof window.Garnish !== 'undefined') {
throw 'Garnish is already defined!';
}

Expand Down