Views Taxonomy好像會打架

Drupal5.x升級時遇到View模組會漏掉(缺少)Taxonomy分類項目

Missing taxonomy terms in filters
http://drupal.org/node/199675

patch內容如下
Index: views_taxonomy.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/modules/Attic/views_taxonomy.inc,v
retrieving revision 1.27.2.12
diff -u -r1.27.2.12 views_taxonomy.inc
--- views_taxonomy.inc 14 Jul 2007 19:30:51 -0000 1.27.2.12
+++ views_taxonomy.inc 13 Dec 2007 17:34:19 -0000
@@ -241,7 +241,7 @@
unset($form['#title']);
unset($form['#description']);
if (!$vocabulary->required) {
- unset($form['#options'][0]);
+ unset($form['#options']['']);
}
unset($form['#default_value']);
$form['#multiple'] = TRUE;

留言

熱門文章