Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
block.module
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
14 Sep 2010 at 16:28 UTC
Updated:
3 Jan 2014 at 02:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sebyoga commentedHello,
I can't reproduce this bug. Can you check with the Drupal-alpha7 version ?
Best regards,
Sebastien
Comment #2
grendzy commentedsetting correct status - "needs review" indicates a patch has been written.
Comment #3
sebyoga commentedOk,
I set status to "needs review" when the patch has been written.
Comment #4
rayasa commentedTried this on the latest 7.x.dev. The problem can reproduced by following the steps in the description.
Comment #5
tofuComputer commentedI have throughly tested this issue and am able to reproduce it every time. Drupal doesn't throw and error, it simply goes passive-agressive on you - refreshes but no changes.
Comment #6
webchickSounds like we need some tests for block customization. :)
Comment #7
bspellmeyer commentedCurrently the custom block visibility settings are supposed to be in $user->block, but there is no logic implemented to save or retrieve these settings.
The attached patch saves the block visibility settings into the serialized default variable $user->data['block‘]. I've grepped the drupal source for any occurrences of $user->block or $account->block and replaced them with the according $user->data['block'] / $account->data['block‘].
No tests were added so far.
This is my first core patch so feel free to rip it apart ;)
Comment #8
webchickActually that looks pretty good! :)
Though I'm confused, because I thought we ripped out users.data at some point. Hm.
bspellmeyer, if you want to try your hand at writing an automated test for this, feel free to join IRC and ask around in #drupal-contribute for pointers.
Comment #9
bspellmeyer commentedWell, here goes my first automated test. Patch + tests pass locally
Comment #11
bspellmeyer commentedMerged above patches into the attached patch.
Comment #12
ygerasimov commentedPatch and test #11 works nice with me.
Comment #13
tom_o_t commented#11: block-911290-2.patch queued for re-testing.
Comment #14
webchickCommitted to HEAD. Thanks, and thanks for the tests! :)