mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-03-31 05:33 am

[dw-free] Slight glitch on /customize/advanced/styles before any data is saved.

[commit: http://hg.dwscoalition.org/dw-free/rev/d703a31eac87]

http://bugs.dwscoalition.org/show_bug.cgi?id=531

Fix bug in advanced style editor.

Patch by [personal profile] exor674.

Files modified:
  • htdocs/customize/advanced/styles.bml
--------------------------------------------------------------------------------
diff -r 043a69814b42 -r d703a31eac87 htdocs/customize/advanced/styles.bml
--- a/htdocs/customize/advanced/styles.bml	Tue Mar 31 05:32:25 2009 +0000
+++ b/htdocs/customize/advanced/styles.bml	Tue Mar 31 05:33:48 2009 +0000
@@ -131,7 +131,7 @@
         $POST{core} ||= $POST{core_hidden};
         $core = defined $POST{core} ? $POST{core} : $style->{layer}->{core};
         my $highest_core;
-        map { $core = $_ if $pub->{$_}->{type} eq 'core' && /^\d+$/ && 
+        map { $highest_core = $_ if $pub->{$_}->{type} eq 'core' && /^\d+$/ && 
                 $pub->{$_}->{majorversion} > $pub->{$highest_core}->{majorversion} } keys %$pub;
         unless ( $core ) {
             $core = $highest_core;
--------------------------------------------------------------------------------