Periods error
Brought to you by:
jberanek
I have configured my system for periods submissions, like "period 1" and "period 2" and the user can select only one period for each room. So i set in my "config.inc.php" to "$max_duration_enabled = TRUE;" and "$max_duration_periods = 1;" right? Ok
After then, when user select in calendar "period 1", the system not allow submission because there is some policy conflicts "the maximum duration of booking is 1 period" and they can't go ahead.
But, if the user select in calendar "period 2", the system works fine.
So, can you help me?
Thank you very much!!
I haven't been able to reproduce this problem. Can you tell me please
Thanks,
Campbell
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Hi Campbell,
Your requests:
Thank you.
Last edit: Anonymous 2014-07-29
Thanks. I think I can reproduce the problem. Do you find that the period select box is disabled if you select "period 1"?
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Exactly. Period select box is disabled when "period 1" is selected in calendar and the system results policy conflicts "the maximum duration of booking is 1 period". But, if selected "period 2" in calendar, works fine.
I think, as a suggestion, if selected $max_duration_periods = 1;" the system may be disable the end of period.
Last edit: Anonymous 2014-07-29
I've now fixed this in Rev 2854. You can patch your system by replacing the code for the function genAllDay() in edit_entry.php with the following code:
Campbell
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Thank you man!! Works fine now! I would like to reward you for your work. Is there any way that i make a donation?
Anderson