User tests: Successful: Unsuccessful:
Pull Request for Issue #44154 .
Customfields should only be uniquely named per context, so you should be able to have a field test
in both articles and users. So far this is prohibited and you can only name a field uniquely system wide. This PR should fix that.
Create a customfield with name test
in articles and in users.
Creating the second field is denied.
Both fields can be saved.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_fields |
I have tested this item ✅ successfully on 58ccfe1
Test same Field name on
I have tested this item ✅ successfully on 58ccfe1
I tried to create a custom field in Content and Users with the same name.
It was not possible until I applied the patch.
Later on I used both the user field and the content field and each one kept its value and appeared in the correct place.
@Hackwar can you also change the text in the mentioned string from @brianteeman?
Labels |
Added:
Updates Requested
bug
PR-5.3-dev
|
Category | Administration com_fields | ⇒ | Administration com_fields Language & Strings |
Done
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
RTC
Language Change
Removed: Updates Requested |
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-10-10 12:42:44 |
Closed_By | ⇒ | laoneo | |
Labels |
Added:
Documentation Required
|
Thanks!
The error message needs to be updated as currently it says
COM_FIELDS_ERROR_UNIQUE_NAME="Another Field has the same name (remember it may be a trashed item or it may be already present as a custom field in another extension)."
It can now be simplified and made more consistent with other strings eg
COM_FIELDS_ERROR_UNIQUE_NAME="Another Field has the same name (remember it may be a trashed item)."