This is the continuation of #1360310: Undefined index notices: complete form, process input, programmed, #array_parents, #parents, invalid arguments in form_builder
I suggest to add the missing elements of the form and form state.
Moreover, $arg_form_state variable is undefined but passed to the form_builder() function.

Comments

maximpodorov’s picture

andypost’s picture

+++ b/includes/context-admin.inc
@@ -416,13 +416,15 @@ function ctools_context_ajax_item_add($mechanism = NULL, $type = NULL, $cache_ke
+    $arg_form_state = form_state_defaults() + array(
...
       'programmed' => FALSE,

@@ -591,8 +593,17 @@ function ctools_context_ajax_item_edit($mechanism = NULL, $type = NULL, $cache_k
+      'programmed' => FALSE,
...
+    $arg_form_state = form_state_defaults() + array(

The form_state_defaults() already sets 'programmed' to FALSE

maximpodorov’s picture

#programmed is removed.

andypost’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Quick fix

Great!

japerry’s picture

Status: Reviewed & tested by the community » Fixed

Passed review, looks good. Committed.

  • japerry committed 04d8003 on 7.x-1.x authored by maximpodorov
    Issue #2186167 by maximpodorov: Undefined index notices in context-admin...

Status: Fixed » Closed (fixed)

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