Skip to content

Commit 7500941

Browse files
committed
Hide the Max Authors setting for Singles
1 parent 0d33cf5 commit 7500941

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- Fixed a bug where the submit button within Live Preview was labelled “Save” rather than “Create entry” when editing an unpublished draft. ([#18579](https://github.com/craftcms/cms/discussions/18579))
1515
- Fixed a bug where recent changes could be lost when creating an element or applying a draft, if there were validation errors. ([#18657](https://github.com/craftcms/cms/issues/18657))
1616
- Fixed a bug where nested elements would get soft-deleted after running the `entrify/global-set` command. ([#18650](https://github.com/craftcms/cms/issues/18650))
17+
- Fixed a bug where the “Max Authors” section setting was visible for Single sections.
1718

1819
## 5.9.18 - 2026-03-26
1920

src/templates/settings/sections/_edit.twig

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,19 @@
272272
instructions: 'The maximum number of authors that entries in this section can have.'|t('app'),
273273
id: 'maxAuthors',
274274
name: 'maxAuthors',
275-
autocorrect: false,
276-
autocapitalize: false,
277-
default: 1,
275+
type: 'number',
276+
min: 0,
277+
max: 32767,
278278
value: section.maxAuthors,
279279
errors: section.getErrors('maxAuthors'),
280280
data: {'error-key': 'maxAuthors'},
281281
size: 5,
282282
disabled: readOnly,
283+
fieldClass: {
284+
'type-channel': true,
285+
'type-structure': true,
286+
'hidden': section.type == 'single',
287+
}|filter|keys,
283288
}) }}
284289

285290
{% if brandNewSection %}

0 commit comments

Comments
 (0)