When editing a published shout, the published option defaults the 'not published' despite that not being the case. If you set it to published, and press submit, the shout goes unpublished.

I'm looking into it now and my guess is the display of shouts screws up the 0 or 1 for moderated...

No one noticed this yet?

Comments

mstef’s picture

Easiest fix is to swap the options on the edit form:

$form['moderate'] = array(
'#type' => 'radios',
'#title' => t('Moderation Status'),
'#default_value' => $shout->moderate,
'#options' => array('published', 'not published'),
);

decibel.places’s picture

same problem - subscribing

in case you're looking for it, the code is in shoutbox.module 6.x-1.0 line 538-543

and actually only line 542 needs to be changed from

'#options' => array('not published', 'published'),

to

'#options' => array('published', 'not published'),

mstef’s picture

Yea..that's exactly what I said already...

decibel.places’s picture

well, I find often that the filename in the module is not referenced in d.o. posts...

so you did say it already, but I added some details that make it easier to fix

mstef’s picture

Yea definitely..i just wouldn't want other readers to get confused.

disterics’s picture

Assigned: Unassigned » disterics
mstef’s picture

Version: 6.x-1.0 » 6.x-2.x-dev
Status: Active » Closed (fixed)