From: Simon Cozens <simon@simon-cozens.org>
Date: Thu, 23 Dec 2004 14:58:27 +0000 (+0000)
Subject: patch for display_line() macro to use CDBI->accessor_name in case the column accessor... 
X-Git-Tag: 2.10~41
X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=373d926f352c8fdfd62279cfc1b41b7c17c88522;p=maypole.git

patch for display_line() macro to use CDBI->accessor_name in case the column accessors have been renamed (Dave Howorth)


git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@323 48953598-375a-da11-a14b-00016c27c3ee
---

diff --git a/templates/factory/macros b/templates/factory/macros
index afa2a74..8743afc 100644
--- a/templates/factory/macros
+++ b/templates/factory/macros
@@ -62,7 +62,8 @@ for some.
         ELSIF col == item.stringify_column;
             maybe_link_view(item);
         ELSE;
-            maybe_link_view(item.$col);
+            accessor = item.accessor_name(col);
+            maybe_link_view(item.$accessor);
         END;
         "</td>";
     END;