Booked Scheduler Community Support
March 28, 2017, 07:34:04 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Booked 2.5 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: FromScheduleReservationList/SlotLabelFactory and CalendarPresenter  (Read 189 times)
LRHGuy
Newbie
*

Karma: 0
Posts: 2


« on: January 09, 2017, 02:31:54 AM »

Howdy! I'm not sure if this is the right place, but maybe.

This is 2.6.4

While poking around I found that CalendarPresenter.BindCalendarEvents calls FromSchedulerReservationList like this:

Code:
$this->page->BindEvents(CalendarReservation::FromScheduleReservationList(
$reservations,
$resources,
$userSession,
$this->privacyFilter));

but the header is like this, in CalendarReservation:

Code:
function FromScheduleReservationList($reservations, $resources, UserSession $userSession, $groupSeriesByResource = false)  {
$knownSeries = array();
$factory = new SlotLabelFactory($userSession);

I discovered this because SlotLabel was showing items it should not...I changed it to this and all is well, and I am getting what I expected (note the passing of privacyFilter to SlotLabelFactory):

Code:
function FromScheduleReservationList($reservations, $resources, UserSession $userSession, $privacyFilter=null, $groupSeriesByResource = false)  {
$knownSeries = array();
$factory = new SlotLabelFactory($userSession,$privacyFilter);

I didn't see any other calls to FromScheduleReservationList, so it seemed safe. This might be nice to address in a future update.

Thanks!

   
Logged
Pages: [1]
  Print  
 
Jump to:  

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