Changeset 772


Ignore:
Timestamp:
Apr 20, 2006, 11:46:50 AM (15 years ago)
Author:
Dominic Hargreaves
Message:

Fix empty category/locales (fixes #103)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r771 r772  
    1010        #107 Don't display partial http:// URL in preview.
    1111        #93 Upgrade to new Google Maps API (for smaller javascript download)
     12        #103 Fix empty Category/Locale list bug.
    1213
    13140.52    5 March 2006
  • trunk/lib/OpenGuides/Template.pm

    r770 r772  
    263263        my $categories_text = $q->param('categories');
    264264        my $locales_text    = $q->param('locales');
    265         @catlist = sort map { s/^\s+//; s/\s+$//; $_; } # trim lead/trail space
     265        @catlist = sort grep { s/^\s+//; s/\s+$//; $_; } # trim lead/trail space
    266266                        split("\r\n", $categories_text);
    267         @loclist = sort map { s/^\s+//; s/\s+$//; $_; } # trim lead/trail space
     267        @loclist = sort grep { s/^\s+//; s/\s+$//; $_; } # trim lead/trail space
    268268                        split("\r\n", $locales_text);
    269269    }
Note: See TracChangeset for help on using the changeset viewer.