Code

fix Link HTML field()
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 25 Mar 2004 02:49:08 +0000 (02:49 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 25 Mar 2004 02:49:08 +0000 (02:49 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2184 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
roundup/cgi/templating.py

index 00e3161f9ab3a9036223ded5ebec93d8aa1964ca..73ef60c2cd7f7e19cfc468492c49c0d9eff5ed6d 100644 (file)
@@ -7,6 +7,7 @@ Feature:
 
 Fixed:
 - Boolean HTML templating was broken
+- Link HTML templating field() was broken
 
 
 2004-03-24 0.7.0b1
index df604bb45af6afe901f23e50c4218d2f3df35414..9a36a47af6871f8cbf38a404983f61ab37d925af 100644 (file)
@@ -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 = '&quot;'.join(value.split('"'))
         return '<input name="%s" value="%s" size="%s">'%(self._formname,
-            label, size)
+            value, size)
 
     def menu(self, size=None, height=None, showid=0, additional=[],
             sort_on=None, **conditions):