FYI getting this after update to latest rc on form load.
Dont really know what other info to give but if you need anything let me know.

Comments

hanoii’s picture

Same here, and a lot of notice errors as well when you clear the form elements to and build it again.

Glenmoore’s picture

Title: Undefined index: buttons in rules_forms_form_alter() (line 81 of /home1/letshagl/public_html/sites/all/modules/rules_forms/rules » Undefined index: buttons in rules_forms_form_alter() (line 81 of */sites/all/modules/rules_forms/rules

Changing Title to make it more generic so easier to find.

lumient’s picture

Priority: Normal » Major

I have the same issue, but different piece of code

Notice: Undefined index: buttons in rules_forms_rules_event_info() (line 40 of C:\www\imsa\sites\all\modules\rules_forms\rules_forms.rules.inc).

please help.

berenddeboer’s picture

Try changing line 40 from:

if ($info['buttons'] && isset($info['submit'])) {

to:

if (isset($info['buttons']) && isset($info['submit'])) {

kenorb’s picture

Issue summary: View changes

Try dev from the fork.

luizsgpetri’s picture

Assigned: Unassigned » luizsgpetri
erickbj’s picture

Issue tags: +#ciandt-contrib

I've tried to reproduce this issue with both latest stable (7.x-1.0 as of now) and 7.x-1.x and I couldn't - it just works.

It seems the issue would be generated by not having a buttons index as returned by rules_forms_get_form_info(). Values are actually stored in the rules_forms_form_info variable, which is populated at rules_forms_activate_confirm_form_submit() as follows:

  $form_info = array(
    'label' => $form_state['values']['form_id_label'],
    'elements' => array(),
    'path' => $path,
    'buttons' => $form_state['values']['button_validate_submit'] == TRUE,
  );

I can't see how this would leave buttons unset anymore, so I think this has been solved already.

erickbj’s picture

Status: Active » Needs review

Marking as needs review.

caminadaf’s picture

Status: Needs review » Closed (cannot reproduce)

Thanks erickbj for your input and analysis. With this, I'm closing this issue, since this appears to be fixed.

caminadaf’s picture

caminadaf’s picture

Status: Closed (cannot reproduce) » Fixed

Status: Fixed » Closed (fixed)

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