Error Deleting Attribute with 5.8.1

Permalink Browser Info Environment
This is likely an issue because 5.8.1 has a lot of changes with the attributes system. However what's happening is that I'm getting an exception:

An exception occurred while executing 'DELETE FROM AttributeKeys WHERE akID = ?' with params [114]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`test_c5`.`atEmptySettings`, CONSTRAINT `FK_ED1BF189B6561A7E` FOREIGN KEY (`akID`) REFERENCES `AttributeKeys` (`akID`))

If I execute this SQL:
DELETE FROM `test_c5`.`atEmptySettings` WHERE `atEmptySettings`.`akID` = 114

prior to deleting the attribute, it is remove successfully. It looks like the delete is not being done by your code at all - but by different code entirely.

Type: Discussion
Status: In Progress
jero
View Replies:
webinstinct replied on at Permalink Reply
webinstinct
Thank you for letting us know. We have just uploaded version 1.1 which fixes this issue.
janwidmer replied on at Permalink Reply
janwidmer
hey, I still have the problem with version 1.1 of the fileset attribute.
haltink replied on at Permalink Reply 1 Attachment
Here is a fix in the fileset/controller.php to avoid the constraint error.

concrete5 Environment Information

concrete 5.8.1

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.