phpScheduleIt
May 23, 2013, 04:01:47 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: User Name shows on Schedule Calendar - Would prefer Resource  (Read 1360 times)
cjchand
Newbie
*

Karma: 0
Posts: 1


« on: April 23, 2007, 04:28:28 PM »

Hola,

First off, many thanks for creating such a great app. I've looked through the forums and I hope that no one has asked this before - apologies in advance if someone has.

Running 1.2.6 on Win2K3 w/ IIS and MySQL, not that I suspect any of that matters Smiley

The issue: Only in the summaries for the Schedule Calendar Monthly view does it show the user name for a reservation instead of the Resource they have reserved. If I look at the Daily or Weekly views, it shows the Resource instead - which is what I want to see. Also, if I look at "My Calendar," it also shows the Resource in the summary.

I saw the $conf['app']['prefixNameOnSummary'] = 0 option in config.php, which looks like it should control this. However, regardless of what I set this to, the behavior is the same - even after IIS restarts and system reboots. I've even commented out the following from schedule.class.php to no avail (again, after reboots, even):
Code:

if ((bool)$conf['app']['prefixNameOnSummary']) {
$summary->user_name = "{$rs['fname']} {$rs['lname']}";
}


Is this working as designed or is there a way to get the Monthly calendar view to also display the Resource reserved in each calendar day?

Many thanks in advance!

Cheers,
Chris
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: April 25, 2007, 08:48:53 AM »

This is by design, but you can extend this to show the resource name by changing line 151 of lib/ResCalendar.class.php to:

               print_month_reservations($this->reservations, $this->firstDate, array('fname', 'lname', 'name'), false, $is_private, $this->scheduleid);
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!