? 6-validate.patch
? 6-x-conf-ignore.patch
? 683400-redirect.patch
? 710712-domain-DRUPAL-6--2.patch
? 752570-reset.patch
? 752570-static.patch
Index: domain.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain.module,v
retrieving revision 1.134.2.13
diff -u -p -r1.134.2.13 domain.module
--- domain.module	18 Mar 2010 15:05:56 -0000	1.134.2.13
+++ domain.module	28 Mar 2010 17:00:12 -0000
@@ -1254,13 +1254,15 @@ function domain_get_path_match($path) {
  *
  * @param $nid
  *   The node id.
+ * @param $reset
+ *   A bollean flag indicating the need to reset the static variable for the node.
  * @return
  *   An array, consisting of two parts. 'domain_id' is an array of active domain ids. 'domain_site'
  *   is a TRUE/FALSE boolean indicating affiliate status.
  */
-function domain_get_node_domains($nid) {
+function domain_get_node_domains($nid, $reset = FALSE) {
   static $lookup = array();
-  if (isset($lookup[$nid])) {
+  if (isset($lookup[$nid]) && empty($reset)) {
     return $lookup[$nid];
   }
   $domains = array('domain_id' => array(), 'domain_site' => FALSE);
@@ -1477,6 +1479,8 @@ function _domain_store_grants($nid, $gra
   }
   // Ensure that our default grant is present.
   domain_set_default_grant();
+  // Reset the static lookup for this node.
+  domain_get_node_domains($nid, TRUE);
 }
 
 /**
