In the User edit form changing the active blocks for any user doesn't save when the form is submitted. If the block is off by default there is no way to turn it on and vice versa.

CommentFileSizeAuthor
#4 user_edit_2.patch3.19 KBchx
#3 user_edit_1.patch327 byteschx
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Version: 4.7.0-beta1 » 4.7.0-beta2

yup. confirmed ... perhaps whomever did the blocks form api port could investiage?

chx’s picture

Assigned: Unassigned » chx
chx’s picture

Status: Active » Needs work
FileSize
327 bytes

The cause is darn simple: the form is not called upon update hence the value submitted gets lost. form_edit needs a rewrite to submit model. Meanwhile, this simple patch lets you set but not clear a block. Ie. this is mandatory but not enough.

chx’s picture

Status: Needs work » Needs review
FileSize
3.19 KB

Let's see this one. I'll open a task for 4.8 to clean this a bit but I did not want to change API for user_save at this stage.

chx’s picture

Title: User Blocks configuration not saving » User edit form submit model rewrite
Priority: Normal » Critical

If we want hook_user 'form' to actually work, we can not release 4.7 without this one.

chx’s picture

also note http://drupal.org/node/39786 which is the same problem.

Cvbge’s picture

I've tested and it works as advertised

chx’s picture

Status: Needs review » Reviewed & tested by the community

I talked with Cvbge and he tried block and contact settings. This means that everything should work, so... status change!

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)