Opened 8 years ago
Closed 8 years ago
#2065 closed defect (fixed)
Exception when trying to delete a data file type that is referenced from item subtype
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | minor | Milestone: | BASE 3.11 |
Component: | core | Version: | |
Keywords: | Cc: |
Description (last modified by )
We have an item subtype and a data file type. The item subtype has been configured with a reference to the data file type.
When trying to delete the data file type there is no indication that it is used in the trashcan. This results in the following exception:
update or delete on table "DataFileTypes" violates foreign key constraint "FKmnjqbi7ofj7k0bam7cyh5t3k5" on table "ItemSubtypeFileTypes" Detail: Key (id)=(204867) is still referenced from table "ItemSubtypeFileTypes".
The workaround is to manually remove the link between the item subtype and the data file type. This is done from the item subtype edit dialog.
Change History (3)
comment:1 by , 8 years ago
Description: | modified (diff) |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 8 years ago
Summary: | Can't delete data file type that is referenced from item subtype → Exception when trying to delete a data file type that is referenced from item subtype |
---|
comment:3 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
UPDATE:
It should not be possible to delete the data file type without first removing the link. The traschcan should display the item subtype that is referencing the data file type.