Check properly that we allow custom values before we mark a blank value 
as a custom value.

        Patch by fu. 

diffs (12 lines):

diff -r 8cc7e00fc793 -r 992cad8ee52d cgi-bin/LJ/Widget/S2PropGroup.pm
--- a/cgi-bin/LJ/Widget/S2PropGroup.pm  Mon Nov 29 10:19:26 2010 +0800
+++ b/cgi-bin/LJ/Widget/S2PropGroup.pm  Mon Nov 29 10:29:36 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 unless $vals{$override};
+        $vals{$override} = "Custom: " . $override if $prop->{allow_others} && 
! $vals{$override};
 
         $ret .= $class->html_select(
             { name => $name,
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to