Can't edit own reviews on the front-end when anonymous rating is disabled
Trying to edit own review from the front-end generate following error:
0 Incorrect double value: '' for column
sikorasobipro_test3.
osrs4_sobipro_sprr_review.
oar` at row 1
- Call stack
-
- 1 () JROOT/libraries/sobi/Application/Joomla/Database/MySQLi.php:1115
- 2 Sobi\Application\Joomla\Database\MySQLi->exec() JROOT/libraries/sobi/Application/Joomla/Database/MySQLi.php:689
- 3 Sobi\Application\Joomla\Database\MySQLi->update() JROOT/components/com_sobipro/lib/models/review.php:875
- 4 SPReview->saveReview() JROOT/components/com_sobipro/lib/ctrl/review.php:297
- 5 SPRevRatingCtrl->submit() JROOT/components/com_sobipro/lib/ctrl/review.php:65
- 6 SPRevRatingCtrl->execute() JROOT/components/com_sobipro/lib/ctrl/sobipro.php:574
- 7 SobiProCtrl->execute() JROOT/components/com_sobipro/sobipro.php:55
- 8 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69
- 9 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
- 10 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
- 11 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:204
- 12 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:243
- 13 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
- 14 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:63
- 15 require_once() JROOT/index.php:32 `
This problem happens only when anonymous rating is disabled, seems like this function treat logged in user same as visitor.