### Eclipse Workspace Patch 1.0 Index: context.core.inc =================================================================== --- context.core.inc (revision 188) +++ context.core.inc (working copy) @@ -265,14 +265,18 @@ * Implementation of hook_nodeapi(). */ function context_nodeapi(&$node, $op, $teaser, $page) { - if ($op == 'view' && $page && menu_get_object() === $node) { - // Implementation of context_set_by_condition for node. - context_set_by_condition('node', $node->type); + if ($op == 'view' && $page) { + $menu_object = menu_get_object(); + + if (true === isset($menu_object->nid) && $menu_object->nid == $node->nid) { + // Implementation of context_set_by_condition for node. + context_set_by_condition('node', $node->type); - // Implementation of context_set_by_condition for book. - if (module_exists('book') && isset($node->book)) { - if ($node->book['menu_name']) { - context_set_by_condition('book', $node->book['menu_name']); + // Implementation of context_set_by_condition for book. + if (module_exists('book') && isset($node->book)) { + if ($node->book['menu_name']) { + context_set_by_condition('book', $node->book['menu_name']); + } } } }