? .svn ? taxonomy_super_select-371291.patch ? translations/.svn Index: taxonomy_super_select.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_super_select/taxonomy_super_select.module,v retrieving revision 1.10.2.1 diff -u -p -r1.10.2.1 taxonomy_super_select.module --- taxonomy_super_select.module 21 Jan 2009 22:44:21 -0000 1.10.2.1 +++ taxonomy_super_select.module 9 Oct 2009 22:00:19 -0000 @@ -305,6 +305,17 @@ function taxonomy_super_select_nodeapi(& } } } + elseif ($op == 'view') { + if (isset($node->build_mode) && $node->build_mode == NODE_BUILD_PREVIEW) { + foreach ($node->taxonomy as $vid => $terms) { + foreach ($terms as $tid => $value) { + if ($value == 0) { + unset($node->taxonomy[$vid][$tid]); + } + } + } + } + } } function taxonomy_super_select_submit(&$form, $form_state) { @@ -321,4 +332,4 @@ function taxonomy_super_select_submit(&$ variable_del('taxonomy_super_select_vid_'. $vid); } - } \ No newline at end of file + }