The first time you change the options on the Organic groups Homebox admin screen and click Save configuration, your changes are apparently not registered - not until you save your options a second time.

I have a very fresh install of Drupal 7, I created a couple OG content types and a test group, as well as a test Homebox page. When I choose my test Homebox for the Override group homepage setting on this options screen, click Save configuration, and then reload the sample group I created, nothing has changed in the group - I still see the group summary for the default landing page rather than the expected Homebox. I have to go back to the options screen and hit Save configuration a second time before that setting has any effect.

The same holds true for the Add a group tab option on that screen.

Comments

that0n3guy’s picture

This was an easy fix. I just made the "unsaved" text go after the button instead of before.

See the attached patch.

that0n3guy’s picture

Title: OG Homebox configuration screen requires saving twice before having an effect » Homebox configuration screen requires saving twice before having an effect
Status: Active » Needs review

changing the title since this effects not just the OG homebox. Also changing status.

mgifford’s picture

This patch applies, but I haven't noticed this problem.

m3lod13’s picture

Issue summary: View changes

Hi,

I know it's been a year but thank you so much for this fix. You saved my life.
Do you know why the order was making this problem?

Thanks again

mgifford’s picture

So @m3lod13 you tested this and it fixed the problem. Can you mark it RTBC?

drumm’s picture

I am able to reproduce this when "Auto-save on changes" is off for the block.

  • drumm committed 841c715 on 7.x-2.x
    Issue #1365286 by that0n3guy, drumm: Homebox configuration screen...
drumm’s picture

Status: Needs review » Fixed

Fixed by reordering the elements instead of using the weight. Keeping everything in order will make the code easier to understand.

Status: Fixed » Closed (fixed)

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