As designed Missing selected value of checkbox

imthebest

Well-known member
On admin.php?xengallery/options at the "Blocks Options" tab I set the following and then save the changes:

bug.webp

Okay, now I want to disable the "Show Gallery Statistics Block" so I untick it but leave ticked the "Gallery Sidebar" checkbox so when I need to re-enable the Statistics Block I just will need one click to tick the "Show Gallery Statistics Block" checkbox again.

However after saving the changes I lost the ticked status of the "Gallery Sidebar" checkbox.

Thanks,
Super120
 
That's how it's supposed to work.

When a checkbox is disabled, on the server side we don't actually get its value, whether it's checked or not, so it gets cleared.
 
Back
Top Bottom