Hello,

I've tried to create a block for an entityform when I select create a block it gives a notice and the block option is saved as non-checked :

Notice entityform_block_submit() (...........entityform_block/entityform_block.module file line 106) Undefined index: block_set

Thanks for the help

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

timodwhit’s picture

Was this on an existing entityform or a new entityform?

Can you recreate the issue on a clean Drupal install? I have not been able to recreate this issue.

Thanks for the help!

timodwhit’s picture

Assigned: Unassigned » timodwhit
bonchak’s picture

Hello,

This notice occurs each time I create an entityform even without entity block is not choosen. Evertime I edit an entityform this problem re-occurs. I did not test this issue on another site yet but i'll let you know. I can provide account details for the site if you want to check this issue.

BEst regards

Halil

Myrddin66’s picture

Hi,

For anyone having the same issue, try this in entityform_block.module :

line 93 replace
$form_state['values']['data']['block_set']['current_type']
with
$form_state['values']['data']['current_type']

and line 106 replace
$form_state['values']['data']['block_set']['enable_block']
with
$form_state['values']['data']['enable_block']

Bye

charlie charles’s picture

Thanks worked for me too! :)

timodwhit’s picture

Status: Active » Closed (fixed)

Fixed this. Thanks for the find.

chrisfromredfin’s picture

Issue summary: View changes
Status: Closed (fixed) » Needs work

I get this error, but line 107. Removing the ['block_set'] key makes it work for me.

wjackson’s picture

Attached is a patch with the changes specified in comment #4.

chrisfromredfin’s picture

Status: Needs work » Needs review

Marking 'needs review'

aimeerae’s picture

@will.j, thank you for the timely patch. I have applied the patch at Comment #8 and the error has gone away and a new form block is created. Thank you!

Blackice2999’s picture

Status: Needs review » Reviewed & tested by the community

#8 solves this bug

drurian’s picture

Status: Reviewed & tested by the community » Fixed

Fixed

  • Commit 2af5f46 on 7.x-1.x:
    Issue #2066903 by will.j, bonchak: "Undefined index: block_set" error.
    

Status: Fixed » Closed (fixed)

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

sodome’s picture

[block_set] seems to have crept back into line 107 of the 7.x-1.2 version. Sprang the same error today trying to edit the form. Deleting it fixed the issue.

upunkt’s picture

Same here, 7.x 1.2, patch #8 resolves issue.

drurian’s picture

Ok it seems we have two conflicting issues here. This one and https://www.drupal.org/node/2079239

drurian’s picture

umakart’s picture

Thx for #8 patch

timodwhit’s picture

I actually rerolled this patch into 7.x-1.3 because of 7.x-1.2 wasn't allowing the saving of an entityform block.

However I think some things changed in dev that need the patch from the related issue posted by @drurian.

Thus, updating to 7.x-1.3 should solve this.

ericdsd’s picture

After updating to 1.3 - enable block stopped working

in entityform_block/entityform_block.module line 107
replacing
if ($form_state['values']['data']['enable_block'] == 1) {
by
if ($form_state['values']['data']['block_set']['enable_block'] == 1) {

did the trick

timodwhit’s picture

@ericdsd. Just tried out the 1.3 branch on simplytest.me, can you explain the steps to reproduce the error, I was not able to do so.