ZMSCalendar v2 - bugfix
Niels Dettenbach <[email protected]>
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Organization | Syndicat IT&Internet |
| Message-ID | <[email protected]> |
Dear zms devels,
i've found a bug in ZMSCalendar during this december.
If the calendar shows more then one month and is in a december currently the
calendar overview shows:
dec 2009
jan 2010
jan 2010
jan 2010
...
If i go forward one month by calendar arrows i get the correct output as
usual:
jan 10
feb 10
mar 10
...
so i've searched around in the special object "Calendar" and found in
"displayCalendar":
<dtml-if expr="REQUEST.get('im')>12">
<dtml-call "REQUEST.set('iy',iy+1)">
<dtml-call "REQUEST.set('im',1)">
</dtml-if>
by changing this to:
<dtml-if expr="REQUEST.get('im')>12">
<dtml-call "REQUEST.set('iy',iy+1)">
<dtml-call "REQUEST.set('im',im%12)">
</dtml-if>
it seems to work for me now.
But i'm not fully understanding the ZMS Calendar object. It would be nice if
someone could validate this (or even has a better solution here ;).
many thanks.
best regards,
Niels.
--
---
Niels Dettenbach
---
Syndicat IT&Internet
http://www.syndicat.com
T.-Muentzer.-Str. 2, 37308 Heilbad Heiligenstadt - DE
---
Kryptoinfo:
PGP public key ID 651CA20D
Fingerprint: 55E0 4DCD B04C 4A49 1586 88AE 54DC 4465 651C A20D
https://syndicat.com/pub_key.asc
---
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (GNU/Linux) iQIcBAABCAAGBQJLL5yBAAoJEM78prARigUnvQAP/3+62lWrdx6Ih2PTAP0Mnq8K qeznm7XIh1jIOnZ/4vprd4kWiBWEkVghfGmnuiDh58yf65Fpyp6hR1StTuT255D/ 575696EUAjI34nW1AKjzmNRM/xtQmEz5Y0WeRmGhge3thLbYkHeygiTdq3musHUZ mbQ2Fc90v5jFrBaL2gpG1L8Lrf2y28bRJta6JmY/g+Ulp2P0SOJo5WdKsrKt0s69 bBPnncEtwxreYVrj8/dmpPO5qmr4FtdNnOeq8g6d5t2RIldcfOfI0s3oEu6NeQdz 9EeqYy3QNf+lpu6+68bJ3qucpiIUT9ixHfq8sBSdTV0W5cKAWZDKNEeuTSw4uxZI KAD4vGgyPjbRbrWyfCmp1UN3FEtGFdn/1xOlEQSvtadDtnLCQ/e4LstoLjxySuwG TbJJKbjinaqmLrb/rVXNSgfnc3l5xTfPrSUFOa/mhiUAgEPzqj85bI+vJDsbWY96 mR2sHw3go2DF7tFhTG0ff1ctnuF58jCV6uiIylVUY0uo9lDA3k33FPihXEH6Dz1Q PRhsotZgaZaQv0uSkWW72GA79Oo5uUZhJX//Dfo4U1As1TSTjuENm/csZBFhlw3m SZaBMToxohyU/nSzH+tbhoNRwMTP+/9j8qAJRKnSxLI3JNPAc6LRTl9/Pl9NOmgG zQkJkJxNJ3Uu0Oo/S2TY =r9xD -----END PGP SIGNATURE-----