Subject: | Temlate list table heading links |
In the list template, the table headings are automatically made into links for sorting by that column. But if the current "list_column" is not a real Column and is an acessor to another object or just a simple method , then clicking the link made, causes a DBIx exception.
Simple fix it wrap that link making code in an
IF model_obj.find_column(col);
# do fancy sorting link making code
ELSE:
# no link as sorting on related data is hard
classmetadata.colnames.$col || col FILTER ucfirst;
END;
cheers,
Peter