]> git.decadent.org.uk Git - maypole.git/commitdiff
fix for http://rt.cpan.org/Ticket/Display.html?id=14873
authorAaron Trevena <aaron.trevena@gmail.com>
Tue, 11 Oct 2005 19:00:10 +0000 (19:00 +0000)
committerAaron Trevena <aaron.trevena@gmail.com>
Tue, 11 Oct 2005 19:00:10 +0000 (19:00 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@393 48953598-375a-da11-a14b-00016c27c3ee

templates/factory/list

index 5a4388e749a360cca3ae0f79f21bddec67cf52b5..dbbedafb786171b659479b92e2987dd270882773 100644 (file)
                     SET action = "search";
                   END;
                 END;
-                link(classmetadata.table, action, additional,
+               IF model_obj.find_column(col);
+                  link(classmetadata.table, action, additional,
                     classmetadata.colnames.$col);
-                IF col == request.params.order;
+                  IF col == request.params.order;
                     IF request.params.o2 != "desc";
                         "&darr;";
                     ELSE;
                         "&uarr;";
                     END;
-                END;
+                  END;
+               ELSE;
+                 classmetadata.colnames.$col || col FILTER ucfirst;
+               END;
                 "</th>";
             END %]
            <th id="actionth">Actions</th>