Show which machine-readable must be unique.

Created on 10 March 2016, over 8 years ago
Updated 19 April 2024, 2 months ago

Currently when I'm submitting some form, I've got this message:

The machine-readable name is already in use. It must be unique.

which is meaningless for me as a developer and it happens in edge cases on invalid form submission.

It would be great that the message would show which machine-name is failing.

Find the patch in attachment with proposed change.

Check the screenshots before applying the patch and after.

Feature request
Status

Needs review

Version

7.0 ⚰️

Component
Form 

Last updated about 7 hours ago

Created by

🇬🇧United Kingdom kenorb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India Rinku Jacob 13 Kerala

    Reviewed patch #14. It was successfully applied to drupal version 7.x-dev. Adding screenshots for the reference. Need RTBC+1.

  • 🇸🇰Slovakia poker10

    The patch is changing admin-facing strings, which is allowed in this D7 phase, but is it not ideal, as translators need to translate them again. Therefore I would like to ask - is there a scenario, where a page can contain multiple machine-readable name fields and a user can be confused, which one has an error? If yes, then I understand this effort and it does make a sense. But if we are trying to change the message just because it can contain more specific information and we have only pages with no more than one machine-readable name fields, then it seems to me not reasonable for this D7 phase. Thanks!

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    It should be clear which field is causing the validation error, as the screenshot shows , even in the case there are two machine name fields.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹
Production build 0.69.0 2024