Notice: Undefined index: #webform_component template_preprocess_webform_element() (/var/www/sites/all/modules/webform/webform.module 3460
Notice: Undefined index: #webform_component template_preprocess_webform_element() (/var/www/sites/all/modules/webform/webform.module 3460
its happen when I would like to use date picker on a matrix component.
$element:
... (Array, 32 elements)
#type (String, 4 characters ) date | (Callback) date();
#title (String, 13 characters ) Fogyasztható
#title_display (String, 9 characters ) invisible
#required (Boolean) FALSE
#start_date (String, 10 characters ) 2014-10-15
#end_date (String, 10 characters ) 2015-01-14
#year_textfield (Integer) 0
#default_value (Array, 3 elements)
#timezone (String, 4 characters ) user
#process (Array, 1 element)
#theme (String, 19 characters ) webform_date_matrix
#theme_wrappers (Array, 1 element)
#element_validate (Array, 1 element)
#datepicker (Integer) 1
#input (Boolean) TRUE
#pre_render (Array, 1 element)
#defaults_loaded (Boolean) TRUE
#tree (Boolean) TRUE
#parents (Array, 4 elements)
#array_parents (Array, 4 elements)
#weight (Float) 0.005
#processed (Boolean) TRUE
#attributes (Array, 0 elements)
#id (String, 27 characters ) edit-submitted-termekek-1-6
#name (String, 25 characters ) submitted[termekek][1][6]
#value (Array, 3 elements)
year (Array, 24 elements)
month (Array, 24 elements)
day (Array, 24 elements)
#sorted (Boolean) TRUE
#children (String, 2691 characters )
Comments
Comment #1
chetan-singhal commentedfix with next release.
Comment #2
Valera Tumash commentedHaving same issue here.
It is happening for date elements and as TC noticed the $element doesn't not have #webform_component inside so it throws a notification inside else statement:
Comment #3
scottsawyerMaybe similar, though I am receiving Notices whether I use the date picker or select boxes for date fields. I am using 4.16. https://www.drupal.org/node/2508009
Comment #4
chetan-singhal commented