phpScheduleIt
May 22, 2013, 03:12:04 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: Booking and Participant list missing from dashboard.  (Read 593 times)
andyrav
Jr. Member
**

Karma: 0
Posts: 68


« on: February 28, 2012, 10:26:33 AM »

When you add a participant to a booking, it is missing from the dashboard, the there My Calendar.
If this is correct is it possiable to change it so if a user is added to a booking it it show in there dashboard and Calendar.

Just found this and it is stopping us using the great software.

cheers nick.

Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: March 05, 2012, 05:40:09 PM »

So a dashboard of reservations that you are participating in?
Logged
andyrav
Jr. Member
**

Karma: 0
Posts: 68


« Reply #2 on: March 06, 2012, 10:10:36 AM »

yes including this in my dashboard and in mycalander would be great
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #3 on: March 06, 2012, 11:19:27 AM »

Good idea. I'll work on this.
Logged
andyrav
Jr. Member
**

Karma: 0
Posts: 68


« Reply #4 on: March 06, 2012, 12:09:55 PM »

is there a easy mod i can you to get this working in 2.01. it is the only thing stopping us using this software at current
cheers
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #5 on: March 06, 2012, 01:03:15 PM »

This is already working this way on My Calendar.

For the dashboard it's 2 changes:

Line 52 of Presenters/Dashboard/UpcomingReservationsPresenter.php becomes:
Code:
$reservations = $this->repository->GetReservationList($now, $lastDate, $currentUserId, ReservationUserLevel::ALL);

Line 153 of Domain/Access/ReservationViewRepository.php becomes:
Code:
if (empty($userLevel) && $userLevel != ReservationUserLevel::ALL)
Logged
andyrav
Jr. Member
**

Karma: 0
Posts: 68


« Reply #6 on: March 09, 2012, 12:26:55 PM »

Hi
When changing Line 153 of Domain/Access/ReservationViewRepository.php to
if (empty($userLevel) && $userLevel != ReservationUserLevel::ALL)

When you now go into the resource calendar no bookings are displayed.

any ideas?

thanks again for ya help on this.


andy
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #7 on: March 12, 2012, 03:11:09 PM »

Try changing the
Code:
empty(
to
Code:
is_null(
Logged
andyrav
Jr. Member
**

Karma: 0
Posts: 68


« Reply #8 on: March 13, 2012, 05:30:15 AM »

Still empty when using

      if (is_null($userLevel) && $userLevel != ReservationUserLevel::ALL)

any ideas?

many thanks
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #9 on: March 19, 2012, 02:27:21 PM »

Here's what I have for the variable checking logic in ReservationViewRepository GetReservationList()

if (empty($userId))
        {
            $userId = self::ALL_USERS;
        }
        if (is_null($userLevel))
        {
            $userLevel = ReservationUserLevel::OWNER;
        }
        if (empty($scheduleId))
        {
            $scheduleId = self::ALL_SCHEDULES;
        }
        if (empty($resourceId))
        {
            $resourceId = self::ALL_RESOURCES;
        }
Logged
andyrav
Jr. Member
**

Karma: 0
Posts: 68


« Reply #10 on: March 19, 2012, 02:38:57 PM »

Working now upgraded to 2.0.2
Cheers for all ya help
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!