Needs review
Project:
Form Tweaker
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2007 at 18:03 UTC
Updated:
23 Aug 2007 at 00:17 UTC
If I go to a nodetype and select "Radios/Checkboxes" as the default display and the default display for my vocabulary is "Default" it will still show up as a dropdown select. It will only display as radios when I select "Radios" under my specific vocabulary.
Comments
Comment #1
timtyler commentedTo fix, change
if (_formtweaker_checkvar($var['taxonomy'][$vid]['style'], $defaults['taxonomy']['style']) == 'radios') {
to:
if (_formtweaker_checkvar($var['taxonomy'][$vid]['style'], $var['taxonomy']['style']) == 'radios') {
and:
function _formtweaker_checkvar($var, $default) {
if (isset($var)) {
return $var;
}
return $default;
}
to:
function _formtweaker_checkvar($var, $default) {
if ($var == "default") {
return $default;
}
if (isset($var)) {
return $var;
}
return $default;
}
Comment #2
timtyler commentedTo fix, change
to:
and:
to:
Comment #3
andyschm commentedPatch works for me. Please apply.