phpScheduleIt
May 18, 2013, 02:52:10 PM *
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: Save summary note on approve window  (Read 1014 times)
MeGo
Newbie
*

Karma: 0
Posts: 8


« on: March 07, 2008, 05:03:41 PM »

Good afternoon,

I am just wondering if there is a way to automatically save any notes added to the summary section while on the approve window.  Right now, the box allows you to add/enter text to it, but after approving the request, the added text is gone.  

Thank you very much.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #1 on: March 10, 2008, 10:01:31 AM »

Add this after line 168 of reserve.php:
Code:

$res->summary = stripslashes($_POST['summary']);


And change line 438 of lib/db/ResDB.class.php to this:
Code:

$values = array(0, $res->get_id(), $res->get_summary());


And change line 441 of lib/db/ResDB.class.php to this:

Code:
. ' SET is_pending = ? AND summary = ?'



This is untested, so back everything up first.
Logged
MeGo
Newbie
*

Karma: 0
Posts: 8


« Reply #2 on: May 13, 2008, 09:23:10 AM »

Thank you for your reply.
I made the changes you suggested.  The summary text added in the approval window did not save after clicking the approve button.  Additionally, I would get a message saying that the reservation had been approved, but I could still see it under pending reservation.

Thanks for your help.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #3 on: May 13, 2008, 02:34:37 PM »

Sorry, line 438 should be:

$values = array(0, $res->get_summary(), $res->get_id());
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!