Page 1 of 1

2008-2009 year change bug

Posted: Sat Jan 03, 2009 2:42 pm
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!

Posted: Fri Jan 23, 2009 6:39 pm
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

Posted: Fri Jan 23, 2009 8:10 pm
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?

Posted: Sun Jan 25, 2009 11:08 pm
by marco
No, it's normal (January 2009 from 2008 menu).

Marco