Nested Form - Cant uncheck checkbox

cole1809
Sponsor
Sponsor
Posts: 18
Joined: 21 Jan 2022, 06:44
Name: Juan Colella
Location: Caba, Argentina
Company Name: Administración Anastópulos

Nested Form - Cant uncheck checkbox

Post by cole1809 »

Hello,
I am working with a nested form, i have a field type "checkboxes" for the subentity, and just have 1 option in the checkboxes field. I can enter to the nested form and check that option and save, that works fine. But if i enter again and try to uncheck it, it doesnt work.
I have the same structuro but with a checkbox in an ordinary entity and the check/uncheck process works fine, seems not to be saving the accion in nested form
Thank you
Juan
User avatar
support
Site Admin
Posts: 6222
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Nested Form - Cant uncheck checkbox

Post by support »

Did you use 3.0.1 version?
cole1809
Sponsor
Sponsor
Posts: 18
Joined: 21 Jan 2022, 06:44
Name: Juan Colella
Location: Caba, Argentina
Company Name: Administración Anastópulos

Re: Nested Form - Cant uncheck checkbox

Post by cole1809 »

Yes i am using 3.0.1 and working with the fix toy sent me for the mask of a phone field in a nested form.
User avatar
support
Site Admin
Posts: 6222
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Nested Form - Cant uncheck checkbox

Post by support »

Please reproduce this issue on personal demo https://www.rukovoditel.net/account_dem ... quest=demo
and send me link to the demo and I will look
cole1809
Sponsor
Sponsor
Posts: 18
Joined: 21 Jan 2022, 06:44
Name: Juan Colella
Location: Caba, Argentina
Company Name: Administración Anastópulos

Re: Nested Form - Cant uncheck checkbox

Post by cole1809 »

https://pdemo.rukovoditel.pro/3.0/index ... mo_id=1059

In entity Y, go to record id 4 and try to uncheck the checkbox of the nested form.
If you go to subentity V, you can uncheck the checkbox option, it shows that is not working in nested form.
User avatar
support
Site Admin
Posts: 6222
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Nested Form - Cant uncheck checkbox

Post by support »

Found issue in code. File from archive replace to includes\classes\items\
Let me know if issue is fixed.
Attachments
subentity_form_fix2.zip
(5.08 KiB) Downloaded 66 times
cole1809
Sponsor
Sponsor
Posts: 18
Joined: 21 Jan 2022, 06:44
Name: Juan Colella
Location: Caba, Argentina
Company Name: Administración Anastópulos

Re: Nested Form - Cant uncheck checkbox

Post by cole1809 »

Sergey,
It still not working for me.
cole1809
Sponsor
Sponsor
Posts: 18
Joined: 21 Jan 2022, 06:44
Name: Juan Colella
Location: Caba, Argentina
Company Name: Administración Anastópulos

Re: Nested Form - Cant uncheck checkbox

Post by cole1809 »

Update:
i think i found the issue:
If the option you are trying to uncheck is the default option, and no other option in the same checkbox field is checked, then it doesnt uncheck when you save...
All of the other possible situations works fine.
User avatar
support
Site Admin
Posts: 6222
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Nested Form - Cant uncheck checkbox

Post by support »

Whad do you mean "default option"?
cole1809
Sponsor
Sponsor
Posts: 18
Joined: 21 Jan 2022, 06:44
Name: Juan Colella
Location: Caba, Argentina
Company Name: Administración Anastópulos

Re: Nested Form - Cant uncheck checkbox

Post by cole1809 »

Post Reply