Issue Bug Closed

#65100IRRE: Delete with 'showPossibleRecordsSelector' = FALSE and 'foreign_unique' set not working (after saved)

Andreas Allacher 02/16/15, 16:14 updated 10/02/18, 11:46

Description

If I have a inline element that uses foreign_selector with foreign_unique and has showPossibleRecordsSelector set to FALSE.
Most likely not a scenario that is used very often but it actually can happen, e.g. one might want to use custom controls or hooks or whatever that requires this set correctly. Not to mention it might be important for storage.
If that is the case, the Javascript for deleting the inline record (after saving), does not work.

Steps to reproduce:
1.) TCA:
foreign_selector set
foreign_unique set
[‘appearance’][‘showPossibleRecordsSelector’] = FALSE

2.) Create a record that has that TCA and create a new inline record
3.) Save
4.) Try to delete inline record results in:
selectObj.add(readdOption, document.all ? index : selectObj.options[index]);

Reviews 1