Page Group functions now work even when an uppercase field / method is provided.

This commit is contained in:
spf13 2014-11-04 00:31:57 -05:00
parent 4b9ea105c2
commit 07f2ef9c5e

View file

@ -79,6 +79,9 @@ var (
)
func (p Pages) GroupBy(key string, order ...string) (PagesGroup, error) {
key = strings.ToLower(key)
if len(p) < 1 {
return nil, nil
}