2008-2009 year change bug

Post here if you think you have found a bug in hoteldruid or error in its documentation.

Moderator: marco

Post Reply
rulez22
Posts: 60
Joined: Thu Feb 01, 2007 2:32 pm

2008-2009 year change bug

Post by rulez22 »

Not a major bug but still is - after 1st of January 2009 I have noticed that some of the bookings from January 2009 have disappeared and I thought it was something serious. Actually it is not - all the information about bookings is still in the database. It is just somehow links "<--" and "-->" on top of the reservations table page (where you see whole month with apartments) still have 2008 year in there. And also in the address bar it still has this "...tabella.php?anno=2008&..." but actual year is 2009. When you manually change 2008 to 2009 in the address bar it works fine.
Also "mese=13" which stands for "month" in address bar is wrong - there is only 12 months in a year. If you change that to 1 it works fine and shows January, 2 for February and so on.

PS. Also I had same bug as a year ago when PHPR creates a new template for next year on 31st of December - see topic
http://www.digitaldruid.net/php-residen ... ight=#1353
Would it be better to create a mini php script - to automatically check if PHP residence files have proper rights/owners so this will never happen again?

Thanks!
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Post by marco »

Are you sure you were not accessing the table from year 2008? You see the year you're currently accessing in the main menu.

Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
rulez22
Posts: 60
Joined: Thu Feb 01, 2007 2:32 pm

Post by rulez22 »

I think I found it - i was just accessing PHPR via favourites link in firefox and it had year 2008 in that link.
Still don't understand how did "mese=13" passed through - it shouldn't have happen should it?
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Post by marco »

No, it's normal (January 2009 from 2008 menu).

Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
Post Reply