Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): API calls were broken due to abstract method #345

Merged
merged 1 commit into from
May 13, 2024

Conversation

JohnVillalovos
Copy link
Contributor

The class ScheduleWebServiceView had an abstract method BindViewableResourceReservation which was not implemented. This caused API access to fail with an error like:

[php:error] [pid 84] [client 10.89.0.25:59502] PHP Fatal error:  Class ScheduleWebServiceView contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (ISchedulePage::BindViewableResourceReservations) in /var/www/html/WebServices/SchedulesWebService.php on line 169

Implement the missing method as a no-op method.

Closes: #343

The class `ScheduleWebServiceView` had an abstract method
`BindViewableResourceReservation` which was not implemented. This
caused API access to fail with an error like:
    [php:error] [pid 84] [client 10.89.0.25:59502] PHP Fatal error:  Class ScheduleWebServiceView contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (ISchedulePage::BindViewableResourceReservations) in /var/www/html/WebServices/SchedulesWebService.php on line 169

Implement the missing method as a `no-op` method.

Closes: LibreBooking#343
@JohnVillalovos
Copy link
Contributor Author

I'll be honest and admit that I don't know for sure if adding a no-op method is the complete solution. But I can now at least login using the API.

@effgarces effgarces merged commit 0b61505 into LibreBooking:develop May 13, 2024
@JohnVillalovos JohnVillalovos deleted the jlvillal/fix_api branch May 20, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants