-
Notifications
You must be signed in to change notification settings - Fork 338
Open
Labels
bugSomething isn't workingSomething isn't working
Description
BufferItem::Id() in lib/Application/Schedule/ReservationListItem.php calls itself recursively, resulting in a stack overflow:
public function Id()
{
return $this->Id() . 'buffer_' . $this->location;
}
This method calls $this->Id() instead of delegating to the wrapped reservation item. Any code path that calls Id() on a BufferItem will crash with a fatal error.
This appears to have been a latent bug that was masked because BufferItem::Id() is rarely (or never) called in practice.
Suggested Fix
In lib/Application/Schedule/ReservationListItem.php line 382, change:
public function Id()
{
return $this->Id() . 'buffer_' . $this->location;
}
to:
public function Id()
{
return $this->reservationItem->Id() . 'buffer_' . $this->location;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working