? .svn
? primary_term-357331-3.patch
Index: primary_term.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/primary_term/primary_term.module,v
retrieving revision 1.8
diff -u -p -r1.8 primary_term.module
--- primary_term.module	15 Sep 2008 14:14:57 -0000	1.8
+++ primary_term.module	13 May 2010 17:46:11 -0000
@@ -35,7 +35,11 @@ function primary_term_nodeapi(&$node, $o
       }
       if (!empty($tid)) {
         foreach ($node->taxonomy as $k => $v) {
-          if (is_array($v) && !empty($v[$tid])) {
+          // admin/content/node form has the values of $node->taxonomy as objects instead of arrays, cast appropriately
+          if (is_object($v)) {
+            $v = (array)$v;
+          }
+          if (is_array($v) && (!empty($v[$tid]) || (in_array($tid,$v))) ) {
             return;
           } else if (is_numeric($v) && $v == $tid) {
             return;
