-
Notifications
You must be signed in to change notification settings - Fork 126
Classification Store: Keys are not properly deleted #493
Copy link
Copy link
Closed
pimcore/pimcore
#18765Labels
Description
Hi!
The classification store keys are not deleted properly if someone deletes them via the backend interface. And the reason is probably because they actually never get deleted:
$config = Classificationstore\KeyConfig::getById($id);
// $config->delete();
$config->setEnabled(false);
$config->save();
See:
admin-ui-classic-bundle/src/Controller/Admin/DataObject/ClassificationstoreController.php
Line 1358 in d191bcd
| public function deletePropertyAction(Request $request): JsonResponse |
This might have something to do with the behavior when keys are actually deleted, e.g. when someone calls $config->delete(), as this deletes the key itself, its group relations but not any data object relations, resulting in an exception when someone accesses a related data object.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.