From: richard Date: Thu, 25 Mar 2004 02:49:08 +0000 (+0000) Subject: fix Link HTML field() X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eeed9b3ae3621721023bde531c82b4b8fea92e40;p=roundup.git fix Link HTML field() git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2184 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 00e3161..73ef60c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -7,6 +7,7 @@ Feature: Fixed: - Boolean HTML templating was broken +- Link HTML templating field() was broken 2004-03-24 0.7.0b1 diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index df604bb..9a36a47 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -1398,13 +1398,13 @@ class LinkHTMLProperty(HTMLProperty): else: k = linkcl.getkey() if k: - label = linkcl.get(self._value, k) + value = linkcl.get(self._value, k) else: - label = self._value - value = cgi.escape(str(self._value)) + value = self._value + value = cgi.escape(str(value)) value = '"'.join(value.split('"')) return ''%(self._formname, - label, size) + value, size) def menu(self, size=None, height=None, showid=0, additional=[], sort_on=None, **conditions):