Tagged: 

Viewing 6 reply threads
  • Author
    Posts
    • #8858
      cosmocanuck
      Member

      Hi! 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.
    • #8862
      kattagami
      Member

      Hello,

      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?

    • #8863
      kattagami
      Member

      Can 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.

    • #8865
      kattagami
      Member

      Just for information: I went back to version 0.9.9.14 and checkbox works again.

    • #8866
      Steve
      Keymaster

      Looks like the PHP 7 updates we added broke checkboxes. Just pushed out 0.9.9.17, which temporarily reverts those changes.

    • #8868
      cosmocanuck
      Member

      Thanks Steve – I’ll upgrade to 0.9.9.17!

    • #8871
      kattagami
      Member

      It 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

Viewing 6 reply threads
  • You must be logged in to reply to this topic.