Issue ouverte · Issue #998 Frontend attributes() drops every attribute after one without a value · @rmdes
attributes() in packages/frontend/lib/globals/attributes.js returns as soon as it meets a value that is empty or false, so every attribute after it is lost. The early return came in with 37e15d5 (January 2023, “don’t return attributes with falsy values”); continue was meant.
The article summary shows it. summary-field.njk passes "editor-locale": application.locale before "editor-status": "false" and "editor-toolbar": "false". application.locale has no default (only publication.locale does), so on an install that doesn’t set it, the two false attributes are dropped and the one-line summary gets the full editor toolbar and status bar.