LibreBooking / app

Repository for the last open source version of Booked Scheduler. The "develop" branch contains the most current working code of the project and should be considered beta. The "master" branch is the most current stable release of BookedScheduler. Please read doc/README.md for further details.
GNU General Public License v3.0
401 stars 240 forks source link

Error: Call to undefined method BookableResource::SetImages() in /var/www/html/WebServices/Controllers/ResourceSaveController.php:79 #302

Open marcin-adamski opened 9 months ago

marcin-adamski commented 9 months ago

Hi, I have librebooking version 2.8.6.1 There is missing function BookableResource::SetImages() in file: Domain/BookableResource.php.

Please look: WebServices/Controllers/ResourceSaveController.php:79

Such code in BookableResource.php works for me: /**

Also there is a typo in https://github.com/LibreBooking/app/tree/2.8.6.1/WebServices/Controllers/ResourceSaveController.php line 77: there is: $oldResource = $this->repository->LoadById($resourceID); should be: $oldResource = $this->repository->LoadById($resourceId);

Best regards, Marcin.

treborin commented 9 months ago

Hi @marcin-adamski , Could you please create a PR with both cases?

Thanks