Join Waiting List enabled for unregistered users

  • Christoph
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 1 month ago #114170 by Christoph
Hello,

Waiting list is enabled in configuration and Registration Access is set to Registered. Events with available places
show "Please login to register" correctly. But full events show "Join Waiting List" which shouldn't be. This is in events_table.php and events_properties.php view.

Debug mode enabled gives this notice:
Undefined property: stdClass::$user_registered in opt\apache2\htdocs\templates\js_wright\html\com_eventbooking\common\events_table.php on line 161

Line 161 is:
Code:
if (($item->event_capacity > 0) && ($item->event_capacity <= $item->total_registrants) && $activateWaitingList && !$item->user_registered && $registrationOpen) { $waitingList = true ; }

Same in overwrite as in original file.

Please advise.

Thank you,
Chris

Please Log in or Create an account to join the conversation.

  • Christoph
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 1 month ago #114214 by Christoph
Replied by Christoph on topic Join Waiting List enabled for unregistered users
Hello,

I was able to solve the issue myself. It was because of the member registration settings. I changed "$item->user_registered" to
"$user->name" and the condition worked again to not show "Join Waitlist".

Regards,
Chris

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #114220 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Join Waiting List enabled for unregistered users
Hi Chris

That's not a right fix. $item->user_registered is used to check if the current user logged in user registered for the event or not

I will try to look at it on tomorrow for the right fix

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc