Created
May 9, 2012 20:30
-
-
Save zroger/2648575 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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