From: Brian O'Connor Date: Fri, 12 Mar 2004 19:04:34 +0000 (+0000) Subject: Fixed a problem for the Turnkey producer where the atomtemplate is not fully derefere... X-Git-Tag: v0.06~131 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4f2cf9fa9d43a48d9da3cad12419a0bf7ef84cbc;p=dbsrgits%2FSQL-Translator.git Fixed a problem for the Turnkey producer where the atomtemplate is not fully dereferencing the hash containing the field data. --- diff --git a/lib/SQL/Translator/Producer/Turnkey.pm b/lib/SQL/Translator/Producer/Turnkey.pm index 64da4fb..9189aa7 100644 --- a/lib/SQL/Translator/Producer/Turnkey.pm +++ b/lib/SQL/Translator/Producer/Turnkey.pm @@ -1,7 +1,7 @@ package SQL::Translator::Producer::Turnkey; # ------------------------------------------------------------------- -# $Id: Turnkey.pm,v 1.27 2004-03-09 04:16:44 allenday Exp $ +# $Id: Turnkey.pm,v 1.28 2004-03-12 19:04:34 boconnor Exp $ # ------------------------------------------------------------------- # Copyright (C) 2002-4 SQLFairy Authors # @@ -22,7 +22,7 @@ package SQL::Translator::Producer::Turnkey; use strict; use vars qw[ $VERSION $DEBUG ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.27 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.28 $ =~ /(\d+)\.(\d+)/; $DEBUG = 1 unless defined $DEBUG; use SQL::Translator::Schema::Constants; @@ -628,6 +628,7 @@ EOF [% rowcount = 0 %] [% IF atom.focus == "yes" %] [% FOREACH record = records %] + [% fields = record.data %] [- FOREACH field = node.data_fields -] [- IF field != "1" -] [- field -][% obj2link(fields.[- field -]) %]