From: Aaron Trevena Date: Tue, 11 Oct 2005 19:00:10 +0000 (+0000) Subject: fix for http://rt.cpan.org/Ticket/Display.html?id=14873 X-Git-Tag: 2.11~125 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=cf40da6e1bfe61dd662f15e2b5ed47f45ce6ffdb;p=maypole.git fix for http://rt.cpan.org/Ticket/Display.html?id=14873 git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@393 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/templates/factory/list b/templates/factory/list index 5a4388e..dbbedaf 100644 --- a/templates/factory/list +++ b/templates/factory/list @@ -27,15 +27,19 @@ 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"; "↓"; ELSE; "↑"; END; - END; + END; + ELSE; + classmetadata.colnames.$col || col FILTER ucfirst; + END; ""; END %] Actions