Tagged: checkboxes
- This topic has 7 replies, 3 voices, and was last updated 3 years, 9 months ago by
kattagami.
-
AuthorPosts
-
-
April 23, 2018 at 7:19 pm #8858
cosmocanuckMemberHi! I set up a checkbox-based field, way back when, and now my client reports that it’s malfunctioning. Turns out (upon taking a closer look) that no matter how many checkboxes you select, it will only save the last one; the others are unchecked after saving the post. This is a field dealing with days of the week, with 7 checkboxes in total, M, Tu, W, etc. If you check M, Tu, and W – for example – after you hit Save, only W is checked.
Before I made changes though, the post was retaining its previous settings – all checkboxes were checked. But once I start to make changes, I can’t select multiple checkboxes.
Here’s the code I used to create it:
piklist('field', array( 'type' => 'checkbox', 'field' => 'open_days', 'label' => 'Open Days', 'attributes' => array( 'class' => 'text' ), 'choices' => array( 'M' => 'M', 'Tu' => 'Tu', 'W' => 'W', 'Th' => 'Th', 'F' => 'F', 'Sa' => 'Sa', 'Su' => 'Su' ) ));And I’ve attached screen grabs of the Dashboard view plus the database, with notes. There were multiple iterations of my metabox called “open_days”, with separate ones for each of the seven days (“open_days_1″, open_days_2”, etc.)
Did something change in an update to Piklist in terms of how to code these? Or did I just mess up somehow?
Thanks in advance for any help you can provide!
Adam
Attachments:
You must be logged in to view attached files. -
April 24, 2018 at 4:31 am #8862
kattagamiMemberHello,
Same bug here with Piklist 0.9.9.16
If we select multiple checkbox, only the last one is saved.
Everything worked well before the last updates.Any fix somewhere?
-
April 24, 2018 at 4:43 am #8863
kattagamiMemberCan we download previous version of Piklist somewhere? I would like to go back to the 0.9.9.14 version to allow my customers to use their backoffice by the time the bug was fixed.
Thanks.
-
April 24, 2018 at 4:54 am #8864
kattagamiMemberFound here: https://wordpress.org/plugins/piklist/advanced/ at the bottom of the page.
-
-
April 24, 2018 at 5:02 am #8865
kattagamiMemberJust for information: I went back to version 0.9.9.14 and checkbox works again.
-
April 24, 2018 at 11:52 am #8866
SteveKeymasterLooks like the PHP 7 updates we added broke checkboxes. Just pushed out 0.9.9.17, which temporarily reverts those changes.
-
April 24, 2018 at 1:11 pm #8868
cosmocanuckMemberThanks Steve – I’ll upgrade to 0.9.9.17!
-
April 25, 2018 at 4:06 am #8871
kattagamiMemberIt seems the bug with upload files (https://piklist.com/support/topic/uploader-field-only-saves-one-file-instead-of-multiple/) is back with version 0.9.9.17
-
-
AuthorPosts
- You must be logged in to reply to this topic.