WordPress.org

Ready to get started?Download WordPress

Forums

Pods - Custom Content Types and Fields
[resolved] Problem: save relationship calendar on setting pod (5 posts)

  1. rbompani
    Member
    Posted 8 months ago #

    I have created new custom setting page.

    I have created new field type:
    Relationship [type: pick]
    › Calendar - Days of Week (Predefined List)
    with multiple select and checkboxes. ( Selection Limit=0)

    When i compile new setting page, if I don't select nothing in relationship and save, pods save automatically Sunday.
    If I select Monday save is ok, but for all other days the problem appear.

    http://wordpress.org/plugins/pods/

  2. rbompani
    Member
    Posted 8 months ago #

    I look at the array with print_r

    if i select:

    - all day, saved array is
    ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 [6] => 6 )
    Correct!

    - only Monday, saved array is 1
    Correct!

    - only Sunday, saved array is
    ( [0] => 0 [1] => 0 )
    Error! I expect "0" or ( [0] => 0 )

    - only Sunday and Monday, saved array is
    ( [0] => 0 [1] => 1 )
    Correct!

    - only Sunday and Tuesday, saved array is
    ( [0] => 0 [1] => 0 [2] => 2 )
    Error!

    - only Tuesday, saved array is
    ( [1] => 0 [2] => 2 )
    Error!

  3. Josh Pollock
    Member
    Plugin Author

    Posted 8 months ago #

    I have opened a bug report about this issue:
    https://github.com/pods-framework/pods/issues/1862

    Thanks for bringing this issue to our attention. You can follow along with our progress resolving it by following that Github issue.

  4. rbompani
    Member
    Posted 7 months ago #

    no news for this problem?

  5. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 7 months ago #

    @rbompani, Please follow-up on GitHub, we'll be updating it there.

Reply

You must log in to post.

About this Plugin

About this Topic