Due to lack of space in the layout I had the following combination of block settings for the shopping cart:
- Display the shopping cart block collapsed by default. CHECKED
- Make the shopping cart block collapsible by clicking the name or arrow. UNCHECKED

The result in UC2 beta3 was that the shopping cart was always collapsed, which is what I wanted. Now after upgrading to UC2 beta5 I noticed that these settings instead resulted in the shopping cart block always being expanded, the first option seems to be ignored due to the latter being unchecked.

Comments

cha0s’s picture

Status: Active » Needs review
StatusFileSize
new958 bytes

This'll fix it...

rszrama’s picture

Status: Needs review » Needs work

The change was actually intentional, but I see your point. I don't think this patch can be used as is, because the JS only needs to be added when the block is !$cachable. Also, this creates some confusion in the block settings that the change was supposed to clear up (based on the language of the options).

All you really have to do if you always want the contents of the block to be hidden is use the same simple CSS that the JS activates:

#cart-block-contents {
  display: none;
}
cha0s’s picture

StatusFileSize
new1.41 KB

Lemme know what you think of this patch...

Also fixes another bug, that is that the arrow wouldn't always be added in when necessary.

cha0s’s picture

Assigned: Unassigned » cha0s
Status: Needs work » Needs review
rszrama’s picture

Version: 6.x-2.0-beta5 » 6.x-2.x-dev
Status: Needs review » Needs work

I don't understand the need for the CSS hack or how it relates to the original issue. If something like that is indeed needed, drupal_add_css() is available in D5-7. Is the original poster still around on this?

cha0s’s picture

Because it's broken...

Please check http://drupal.org/node/259368 and the comment in my patch.

rszrama’s picture

Issue tags: +ubercamp sprint

Tagging.

cha0s’s picture

Can someone please test this besides the author of the patch, and acknowledge that it fixes the current brokenness? :)

rszrama’s picture

Assigned: cha0s » rszrama
Issue tags: +Release blocker
rszrama’s picture

Status: Needs work » Fixed

Works for me. Sorry this took so long. : (

Status: Fixed » Closed (fixed)
Issue tags: -Release blocker, -ubercamp sprint

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