Skip Navigation

[Resolved] Cannot save unchecked checkbox field when editing relationship.

This thread is resolved. Here is a description of the problem and solution.

Problem:
Cannot save unchecked checkbox field when editing relationship.

Solution:
This issue will be fixed with Types v3.0.3.

Relevant Documentation:

0% of people find this useful.

This support ticket is created 6 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by scottL-3 6 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#909087
Screen Shot 2018-06-05 at 3.13.04 PM.png

I am trying to: I have a checkbox field on the intermediate post type for a relationship. If I edit one of the posts in the relationship, uncheck the box for this field and try to update the relationship, it says that nothing has changed and won't save the change. I end up having to delete and re-add the relationship with the box unchecked. (the other way, saving after editing and checking the box, works)

Link to a page where the issue can be seen: this is on the backend so login is needed but you should be able to reproduce it:

1) Make a many to many relationship with its own checkbox field
2) Edit one of the posts that can be related with this new relationship and check the box for the checkbox field when adding a relationship
3) Save the relationship and Update the post
4) Click Quickedit for the relationship from either post
5) Uncheck the box and click the Update button for the relationship
6) You should see a message like this "The related content has not been updated, as no fields were modified."

I expected to see: I expected to be able to edit the relationship field

Instead, I got: I could not save my edit

This seems like a bug.

#909238

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - as shown with the image you shared:
=> hidden link

Can you please click on button "Enable Editing" and try to save your post. It should work.

The reason is that this "quick edit" GUI allows you to edit both relationship fields (which are unique for the connection between posts) as well as fields of the connected post itself - which potentially affects all other connection where this post is involved.

#909322

Clicking the enable edit button makes things worse. It does remove the error message but the change is NOT SAVED if I uncheck a checkbox then click update in the edit area then update for the whole post. The box remains checked.

It is also strange that I'd need to click Enable Edit to uncheck but not to check a checkbox field on the relationship. I think the Enable Edit button is only supposed to affect editing fields of the other post in the relationship.

#909327

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes - I see now, that checkbox status does not get saved correctly.

I've escalated this issue to our next level support for further debug. Please hold on for further updates.

#920893

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Update: This will be fixed with the next release of Types v3.0.3 which is schedule to publish within a month from now or may be sooner than that. I will keep you updated.

#920944

Thanks Minesh. Until I can use relationship fields in filters, this isn't a high priority for me so I'll wait for the update to be released.