form block in Global Area conflict with multilingual

Permalink
i add a form block to a global area for a default language and edit it. it working fine and
when i go to another language i can add it's fine but when try to edit it i cannot add new question and the (edit, preview) tabs display empty. see attachment

2 Attachments

 
abcitweb replied on at Permalink Best Answer Reply
abcitweb
I've encountered this issue as well and have been able to solve it...
However, it is a core change, so do not apply this change on a live website.

Perhaps deleting the faulty form block and re-adding it to the Multilingual Global Area solves the problem and is a safer option than the following core change.

The error is at concrete/blocks/form/tools/services.php line 31
" Can't set setBlockAreaObject on null "

I have changed the line
$b = Block::getByID($_REQUEST['bID'], Stack::getByName($a->getAreaHandle()), STACKS_AREA_NAME);

to
$b = Block::getByID($_REQUEST['bID']);


It would be nice if someone from the core team could have a look at the implications of this change.