meeting-room-booking-system / mrbs-code

MRBS application code
Other
124 stars 61 forks source link

the maximum advance booking time is not being enforced #2622

Open jberanek opened 4 years ago

jberanek commented 4 years ago

Hi,

i change the maximum advance booking time to 5 weeks. I test the functionality and its shows up the alert regarding the policy.

But the problem is i can save the booking even it breach the policy (it should not to be saved because does not comply with the policy).

Hopefully you can help me figure up the problem.

Thanks.

Reported by: msyafiq

Original Ticket: mrbs/support-requests/1927

Attachments: https://sourceforge.net/p/mrbs/support-requests/1927/attachment/mrbs1.JPG https://sourceforge.net/p/mrbs/support-requests/1927/attachment/mrbs2.JPG https://sourceforge.net/p/mrbs/support-requests/1927/attachment/mrbs3.JPG

jberanek commented 4 years ago

My guess is that you are logged in as an admin. Policies do not apply to admins. The alert is for "information only" and saying that "the new booking would conflict ..." [if you weren't an admin].

Original comment by: campbell-m

jberanek commented 4 years ago

yeah true i logged in as an admin. It's worked for non admin.

And 1 more thing, after user login their details is not showing. Is it because of the database?

Original comment by: msyafiq

Attachments: https://sourceforge.net/p/mrbs/support-requests/_discuss/thread/200611ef89/8afb/de4a/attachment/mrbs4.JPG

jberanek commented 4 years ago

My guess is that there's a JavaScript error. Are you getting any errors in your browser console in Developer Tools? Have you made any changes to MRBS?

By the way, in future could you raise new issues as new tickets please? It helps others in the future to find problems that are the same as theirs. Thanks.

Original comment by: campbell-m

jberanek commented 4 years ago

i didnt get any errors in my browser and didnt make any changes.

about the ticket, im sorry and will do as suggested.

Original comment by: msyafiq

jberanek commented 4 years ago

The problem solved. Thanks for your help.

Original comment by: msyafiq