phpScheduleIt
May 24, 2013, 06:48:10 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Remove or hide reservation when end time has been reached  (Read 828 times)
phlsi
Newbie
*

Karma: 0
Posts: 5


« on: September 23, 2010, 10:18:37 AM »

I have been scouring the site but have not been able to find the answer to this question:

Is it possible to have a reservation removed or hidden from the users "My Reservation" area in the control panel immediately at the end time or 1 hour after the end time?
I still want to keep the reservation detail for statistical purposes, but do not want it to appear in the control panel after the fact.

Can any one help please?
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: September 27, 2010, 01:51:33 PM »

It should currently behave like that.  The control panel only displays upcoming and in progress reservations.  Are you seeing reservations show up there after they have ended?
Logged
phlsi
Newbie
*

Karma: 0
Posts: 5


« Reply #2 on: September 28, 2010, 09:43:50 AM »

Nick hi

what i am seeing is the reservations are displaying until midnight even if they are just a 2 hour block.

i guessed there is a job to clear down the schedule, i would need that to run every 3 hours as opposed to once per day.

Thanks again for your amazing tool, and your comments and help
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #3 on: October 18, 2010, 02:09:02 PM »

This may have to do with timezone differences.  The control panel query runs each time the page is viewed, so it just grabs "current and upcoming" reservations on each page load.

You can tweak this query in get_user_reservations() of lib/DbEngine.class.php
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!