phpScheduleIt
May 21, 2013, 02:33:24 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: Incorrect name shown for "Signed in as" when viewing reservation  (Read 1137 times)
gpreuninger
Newbie
*

Karma: 0
Posts: 6


« on: March 29, 2012, 09:28:33 AM »

"userA" logs on and views reservation booked by "userB".  Global header on the viewing reservation page displays "Signed in as userB", the user who booked the reservation.  Can anyone direct me to the code that needs to be modified so that "Signed in as userA" , the user who is logged in, is displayed on the global header?   Thank you.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: April 02, 2012, 03:18:34 PM »

That's very strange. I'll try to reproduce this.
Logged
ewtwolf
Newbie
*

Karma: 0
Posts: 27


« Reply #2 on: April 09, 2012, 02:40:55 PM »

I've encountered this too.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #3 on: April 10, 2012, 09:40:44 AM »

I see the problem. The same variable name is being used in 2 places, so it gets displayed wrong on the reservation page. I'll get this fixed.
Logged
gpreuninger
Newbie
*

Karma: 0
Posts: 6


« Reply #4 on: May 25, 2012, 09:28:44 AM »

Thank you for fixing this (version 2.1.3 +).  Now "Signed in as" displays the logged in viewer's name, not the person who made the reservation.

We noticed that when a person is editing a reservation, the "User" is the person who made the reservation.
However when a person is viewing (read-only) or approving  a reservation, the "User" is the person who is currently logged on.  For people who are approving reservations - this is confusing.  It is important that approvers know who created the reservation.

Resolution for version 2.1.4: 
tpl/Reservation/view.tpl
line 30 change  {$UserName} to {$ReservationUserName}.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #5 on: May 29, 2012, 01:52:09 PM »

Thanks!
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!