[horde] [PATCH] datemap.inc

Andrew Morgan morgan at orst.edu
Tue Oct 15 14:17:01 PDT 2002


Attached is a patch to horde/templates/data/datemap.inc.

Without this patch, when I import calendar entries, it gives me an
"undefined index Start Date ..." when it asks for the format of the date
field (the final step before the import succeeds).

This patch changes the code so that it uses the "start_date" key value
instead of the translated value "Start Date".  It still translates the
text into the proper language though.

This patch is against Horde 2.1.  I checked the latest CVS version of
Horde and it looks like it still has the problem.

	Andy
-------------- next part --------------
--- horde/templates/data/datemap.inc.orig	Tue Oct 15 14:06:52 2002
+++ horde/templates/data/datemap.inc	Tue Oct 15 13:14:29 2002
@@ -17,7 +17,7 @@
     <td>
         <table cellpadding="2" cellspacing="0" border="0" width="100%">
         <tr><td class="item">&nbsp;</td></tr>
-        <tr><td class="smallheader"><b><?= sprintf(_("Imported field: %s"), $appFields[$key]) ?></b></td></tr>
+        <tr><td class="smallheader"><b><?= sprintf(_("Imported field: %s"), _($key)) ?></b></td></tr>
         </table>
     </td>
 </tr>


More information about the horde mailing list