[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
exor674.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=531
Fix bug in advanced style editor.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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; --------------------------------------------------------------------------------