Skip to content

Instantly share code, notes, and snippets.

@zroger
Created May 9, 2012 20:30
Show Gist options
  • Save zroger/2648575 to your computer and use it in GitHub Desktop.
Save zroger/2648575 to your computer and use it in GitHub Desktop.
diff --git a/drupal/drupal-7.9/sites/all/modules/custom/elc_workflow/includes/elc_workflow.node_controller.inc b/drupal/drupal-7.9/sites/all/modules/custom/elc_workflow/includes/elc_workflow.node_controller.inc
index cc1b015..8e2547c 100644
--- a/drupal/drupal-7.9/sites/all/modules/custom/elc_workflow/includes/elc_workflow.node_controller.inc
+++ b/drupal/drupal-7.9/sites/all/modules/custom/elc_workflow/includes/elc_workflow.node_controller.inc
@@ -2,11 +2,14 @@
class ELCNodeController extends NodeController {
public function load($ids = array(), $conditions = array()) {
- if ($site_tag = elc_workflow_get_tag()) {
+ if (empty($conditions[$this->revisionKey]) &&
+ !path_is_admin(current_path()) &&
+ ($site_tag = elc_workflow_get_tag())) {
+ debug($site_tag);
// Force the loading of revision
$conditions[$this->revisionKey] = elc_workflow_get_vid($site_tag, reset($ids));
}
-
+
return parent::load($ids, $conditions);
}
}
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment