Closed (fixed)
Project:
Shoutbox
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Jul 2009 at 18:30 UTC
Updated:
1 Oct 2010 at 21:44 UTC
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
Comment #1
mstef commentedEasiest 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'),
);
Comment #2
decibel.places commentedsame 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'),Comment #3
mstef commentedYea..that's exactly what I said already...
Comment #4
decibel.places commentedwell, 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
Comment #5
mstef commentedYea definitely..i just wouldn't want other readers to get confused.
Comment #6
disterics commentedComment #7
mstef commented