[dw-free] Custom values not possible for dropdowns
[commit: http://hg.dwscoalition.org/dw-free/rev/b9d26199a143]
http://bugs.dwscoalition.org/show_bug.cgi?id=3233
Use correct attribute name.
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3233
Use correct attribute name.
Patch by
Files modified:
- cgi-bin/LJ/Widget/S2PropGroup.pm
--------------------------------------------------------------------------------
diff -r 992cad8ee52d -r b9d26199a143 cgi-bin/LJ/Widget/S2PropGroup.pm
--- a/cgi-bin/LJ/Widget/S2PropGroup.pm Mon Nov 29 10:29:36 2010 +0800
+++ b/cgi-bin/LJ/Widget/S2PropGroup.pm Mon Nov 29 10:46:42 2010 +0800
@@ -418,7 +418,7 @@ sub output_prop_element {
# take the list of allowed values
# and prepend custom values (set through the layer editor) if allowed
my %vals = split( /\|/, $prop->{values} );
- $vals{$override} = "Custom: " . $override if $prop->{allow_others} && ! $vals{$override};
+ $vals{$override} = "Custom: " . $override if $prop->{allow_other} && ! $vals{$override};
$ret .= $class->html_select(
{ name => $name,
--------------------------------------------------------------------------------
