?
avatar AlexRed
AlexRed
19 May 2017

Steps to reproduce the issue

Create a new content custom fied with Title "test", try to create another custom field with Title "test...---+++"
Error
Save failed with the following error: Another Field has the same name (remember it may be a trashed item).

Expected result

I can create custom field with different Title

Actual result

I can't create custom field with different Title

System information (as much as possible)

field-name-error

Additional comments

Joomla 3.7.1

avatar AlexRed AlexRed - open - 19 May 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 May 2017
avatar AlexRed AlexRed - edited - 19 May 2017
avatar brianteeman
brianteeman - comment - 19 May 2017

It's the same throughout Joomla

On 19 May 2017 4:58 p.m., "Alessandro Rossi" notifications@github.com
wrote:

Steps to reproduce the issue

Create a new content custom fied with Title "test", try to create another
custom field with Title "test...---+++"
Error
Save failed with the following error: Another Field has the same name
(remember it may be a trashed item).
Expected result

I can create custom field with different Title
Actual result

I can't create custom field with different Title
System information (as much as possible) Additional comments

Joomla 3.7.1


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#16132, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8bhQoQTj_FVREZEoJEG5aQzTqQGCks5r7bwdgaJpZM4NgtVi
.

avatar AlexRed
AlexRed - comment - 19 May 2017

for the content I have:
Warning
Alias already existed so a number was added at the end. You can re-edit the article to customise the alias.
And the content was created

Where in Joomla is the same like for the custom field ?

avatar AlexRed
AlexRed - comment - 19 May 2017

For modules I can create modules with the same title

avatar mbabker
mbabker - comment - 19 May 2017

Where in Joomla is the same like for the custom field ?

The restriction that aliases must be unique is the same. Replace "alias" with "name" in the case of com_fields IIRC. What may be different is "hard" erroring like your issue report states and automagically changing the alias as com_content does as an example.

I don't think it's the Title field that's causing your error.

avatar AlexRed
AlexRed - comment - 19 May 2017

yes, I agree

avatar brianteeman
brianteeman - comment - 19 May 2017

The title of a field is NOT the same thing as the title of a module

The title of a field is a unique identifier of the field

The label of the field is the non unique text that is equivalent to the
title of a module

The reason that string and string-+++ has been explained by Michael

On 19 May 2017 5:11 p.m., "Alessandro Rossi" notifications@github.com
wrote:

For modules I can create modules with the same title


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#16132 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8RTP4JE4Z03IGlrYXmdigT1fDeK4ks5r7b89gaJpZM4NgtVi
.

avatar Bakual
Bakual - comment - 19 May 2017

The title doesn't matter. The "name" must be unique (sitewide) because it is also used as the "id" attribute of the element. The "name" is generated automatically from the title (exactly like the alias for an article), but you can specify one yourself.

avatar joomla-cms-bot joomla-cms-bot - change - 19 May 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 19 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 May 2017
Status New Discussion
avatar AlexRed AlexRed - change - 20 May 2017
The description was changed
avatar AlexRed AlexRed - edited - 20 May 2017
avatar brianteeman
brianteeman - comment - 18 Aug 2017

i am closing this for the reasons stated above

avatar brianteeman brianteeman - change - 18 Aug 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-08-18 17:12:14
Closed_By brianteeman
avatar brianteeman brianteeman - close - 18 Aug 2017

Add a Comment

Login with GitHub to post a comment