Posted by rafaeltovar on June 19, 2009 at 7:22am
Jump to:
| Project: | Revision Moderation |
| Version: | 6.x-1.0-alpha2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | rafaeltovar |
| Status: | needs review |
Issue Summary
Revision_moderation have a problem, never change the default options (status, promoted, sticky). When the default status it's 'not published' this node never have been published.
I fix this problem save the options revision on new database table.
| Attachment | Size |
|---|---|
| revision_moderation-save-node-options-5.x-1.3.tar_.gz | 13.33 KB |
Comments
#1
#2
I have made the following change to fix the D6 version of this module:
=== modified file 'sites/all/modules/revision_moderation/revision_moderation.module'
--- sites/all/modules/revision_moderation/revision_moderation.module 2010-07-26 09:47:32 +0000
+++ sites/all/modules/revision_moderation/revision_moderation.module 2010-07-26 11:08:07 +0000
@@ -243,9 +243,13 @@
break;
case 'update':
- if (isset($node->original_node)) {
+
+ // Change: allow admins to publish unpublished nodes
+ // was: if (isset($node->original_node)) {
+ if (isset($node->original_node) and (!user_access('administer nodes') || !variable_get('revision_moderation_exempt', 1))) {
+ // End change
+
// Update node table's vid to the original value.
db_query("UPDATE {node} SET vid = %d, title = '%s', status = %d, moderate = %d WHERE nid = %d", $node->original_node->vid, $node->original_node->title, $node->original_node->status, $node->original_node->moderate, $node->nid);
drupal_set_message(t('Your changes have been submitted for moderation.'));
}
#3
I'm having this issue too. Subscribing.