Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2008 at 14:08 UTC
Updated:
4 Aug 2008 at 22:13 UTC
When editing an existing "taxonomy:term id" filter which uses a drop down widget, it doesn't show the default values (ie. the values that were already selected).
The following patch fixes this (against rc1 - though at the time of writting this bug is still present in HEAD) :
--- modules/taxonomy.views.inc (original)
+++ modules/taxonomy.views.inc (working copy)
@@ -813,6 +813,7 @@
'#multiple' => TRUE,
'#options' => $options,
'#size' => min(9, count($options)),
+ '#default_value' => $this->value?$this->value:array(),
);
}
Comments
Comment #1
merlinofchaos commentedCommitted, after code style fixes. (needed spacing around the ternary operators; $this->value needed empty().)
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.