Support » Plugin: Simple Fields » Date Picker can't save blank value

Viewing 1 replies (of 1 total)
  • Thread Starter squarecandy

    (@squarecandy)

    Ok – solved it:

    field_date_v2.php, line 382:

    function edit_save($values = null) {
        if ( empty($values["gui_selected_date"]) ) {
            return "";
        } elseif ( is_array($values) && isset($values["saved_date_time"]) && !empty($values["saved_date_time"]) ) {
            return trim($values["saved_date_time"]);
        } else {
            return "";
        }
    }

    Would be nice to add this to the next release…

Viewing 1 replies (of 1 total)
  • The topic ‘Date Picker can't save blank value’ is closed to new replies.