Problem/Motivation

If a form uses the date_popup field without setting a default value and the wvega timepicker is enabled, then it will throw the error Undefined index: #default_value in date_popup_process_time_part().

Proposed resolution

The date_popup_process_time_part() function should not assume $element['#default_value'] has been set.

CommentFileSizeAuthor
#1 undefined_index-2532636-1.patch1.12 KBjstoller

Comments

jstoller’s picture

Status: Active » Needs review
StatusFileSize
new1.12 KB

This should fix it.

hamrant’s picture

Status: Needs review » Reviewed & tested by the community

Looks good for me, move to rtbc.

  • podarok committed d6e1d4e on 7.x-2.x authored by jstoller
    Issue #2532636 by jstoller: Undefined index: #default_value in...
podarok’s picture

Status: Reviewed & tested by the community » Fixed

#1 is merged. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.