You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clicking the trash can button in a has_many relationship field deletes the object instead of removing the relationship.
If you click the ‘x’ button in the belongs_to relationship field instead, it correctly removes the relationship.
Clicking the trash can button in a many_to_many relationship always works correctly and is the only way to remove the relationship.
As a current work around for cms users that can't remember what which fields are each they can check for the ‘x’ button in a relationship field and if it isn’t there then click edit in the relationship fields so that they can check to see if is there. If there isn’t an ‘x’ button then that means it is a many_to_many relationship and can safely click the trash can button and save.
Is there a fix/patch for this in one of the versions of the locomotivecms? I couldn't find it referenced in the changelog.
The text was updated successfully, but these errors were encountered:
@RyanMadsen are we prompting for a confirmation when you click on the trash icon? If so, I think the default behavior is okay (not ideal I agree). If not, we need to display one.
Best solution would be to describe the behavior in the content type.
It was immediately deleting them without a confirmation prompt. I think the preferred solution is to replace the trash button with an 'x' button and have the 'x' button remove the relationship. Or even have both buttons available if you still want to delete items from there (including adding the confirmation prompt).
thanks @RamonPage for your answer. The right solution will be to have both ('x' + trash buttons). I've to dig into the code to see if that's possible.
Anyway, the simplest solution is to prompt for a confirmation.
Clicking the trash can button in a has_many relationship field deletes the object instead of removing the relationship.

If you click the ‘x’ button in the belongs_to relationship field instead, it correctly removes the relationship.

Clicking the trash can button in a many_to_many relationship always works correctly and is the only way to remove the relationship.
As a current work around for cms users that can't remember what which fields are each they can check for the ‘x’ button in a relationship field and if it isn’t there then click edit in the relationship fields so that they can check to see if is there. If there isn’t an ‘x’ button then that means it is a many_to_many relationship and can safely click the trash can button and save.
Is there a fix/patch for this in one of the versions of the locomotivecms? I couldn't find it referenced in the changelog.
The text was updated successfully, but these errors were encountered: