Only indicate it's custom if we did provide an override value.

        Patch by fu. 

diffs (14 lines):

diff -r 849760ea64ba -r 14dcdafebcf3 cgi-bin/LJ/Widget/S2PropGroup.pm
--- a/cgi-bin/LJ/Widget/S2PropGroup.pm  Fri Dec 17 18:44:50 2010 +0800
+++ b/cgi-bin/LJ/Widget/S2PropGroup.pm  Mon Dec 20 00:13:54 2010 +0800
@@ -418,7 +418,9 @@ 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_other} && ! 
$vals{$override};
+        $vals{$override} = "Custom: " . $override if $prop->{allow_other}
+                    && defined $override
+                    && ! $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