CMS MADE SIMPLE FORGE

ListItExtended

 

[#10054] duplicate field definition and alias

avatar
Created By: jean-christophe ghio (jissey)
Date Submitted: Wed Jun 18 04:38:28 -0400 2014

Assigned To: Tapio Löytty (Stikki)
Version: 1.4.1
CMSMS Version: 1.11.10
Severity: Minor
Resolution: Accepted
State: Open
Summary:
duplicate field definition and alias
Detailed Description:
Hi,
when an error occur in creating a field definition(i.e: mandatory field not
filled), it is still created.
And there is no control for duplicated alias.
thanks
jc


History

Comments
avatar
Date: 2014-06-18 04:43
Posted By: Tapio Löytty (Stikki)

Gimme test case.

Field combination or something like that.
      
avatar
Date: 2014-06-18 04:47
Posted By: jean-christophe ghio (jissey)

sorry, it was for the fields definition, not for item.
      
avatar
Date: 2014-06-18 04:51
Posted By: Tapio Löytty (Stikki)

There is one mandatory input when creating fields, this is name.

I would like to know how you managed doing what you just did.

None of my quick test cases resulted what your claiming.
      
avatar
Date: 2014-06-18 04:55
Posted By: jean-christophe ghio (jissey)

It just appended 1 hour ago and I can't reproduct it. I'll post when I have more
details.
Sorry
Anyway, I can create twice the same field with the same alias. There is no
control.
      
avatar
Date: 2014-06-18 04:59
Posted By: Tapio Löytty (Stikki)

Well i cant :)

Field definition alias already exists. Alias must be unique.

Works properly here, i need more details about this.
      
avatar
Date: 2014-06-18 05:11
Posted By: jean-christophe ghio (jissey)

yep,
sorry, I spam you!
I've found the case :
it occur when I create a new field without choose a type and click on
Save&Create.
An error message appear, I choose a type and validate.
There is 2 same fields definition with same name and same alias.
      
avatar
Date: 2014-06-18 05:16
Posted By: Tapio Löytty (Stikki)

Confirmed.

I'll adjust check and change alias field to be unique in DB, this should assure
following can't happen again.
      
Updates

Updated: 2014-06-18 05:16
resolution_id: 5 => 6

Updated: 2014-06-18 04:47
description: Hi, when an error occur in creating item(i.e: mandatory field not filled), it is still created. And there is no control for duplicated alias. thanks jc => Hi, when an error occur in creating a field definition(i.e: mandatory field not filled), it is still created. And there is no control for duplicated alias. thanks jc
summary: duplicate item and alias => duplicate field definition and alias

Updated: 2014-06-18 04:43
resolution_id: => 5
assigned_to_id: 100 => 11306