List Validation allow same Name

Description

Hi,

I've added in a custom reference list two item which share the same Name (but search keys where different).
Then I launch the generate model and refresh classes in Eclipse and it throws an error "Duplicate field".

Maybe we could forbid to have same list validation name ?

WDYT ?

Nicolas

Environment

None

Attachments

1

Activity

Carlos Ruiz
April 27, 2015 at 7:38 PM

Thanks , I commited your patch and a peer review next.

The index on ad_ref_list_trl didn't work - it would require an index checking ad_reference_id which is not part of the table.

Nicolas Micoud
April 27, 2015 at 10:40 AM

Hi ,

Please find the migration script.
I was not able to create the indexes in the database.
When clicking on the 'Index validate' button, i got the message "No change to the index" while they were not created.

Thanks,

Nicolas

Nicolas Micoud
April 20, 2015 at 3:20 PM

Ah ok i understand, it will prevent from having same translation for 2 items

Carlos Ruiz
April 20, 2015 at 3:10 PM

both indexes can be in this ticket - I think is a bug to show a user duplicated options in a list

Nicolas Micoud
April 20, 2015 at 1:58 PM

So :

#1 : unique index on AD_Ref_List (AD_Reference_ID, Name)
#2 : index on AD_Ref_List_Trl : perhaps to be done in another ticket as i don't see indexes on translation tables (only for the UU column)

Fixed

Details

Assignee

Reporter

Priority

Created August 8, 2014 at 1:26 PM
Updated June 1, 2015 at 3:50 PM
Resolved April 27, 2015 at 7:38 PM