[BUG]: Wrong prepareTable implementations #1115

Closed
opened 2024-05-02 14:33:49 +00:00 by Polmock · 1 comment

What Happened?

The class Model in the frontend has a wrong prepareTable method: the first line is $date = $this->getDatabase(); while it should be $date = Factory::getDate();
So, when I try to save an entity from the frontend I get the error 'Call to undefined method Joomla\Database\Mysqli\MysqliDriver::toSql()'; with my fix, everything works fine

Steps to reproduce the Bug

Create a frontend view and try to save (new or old is the same)

Which Joomla version are you compiling in?

3.10.12

Which PHP version are you compiling in?

8.2.2

Which Joomla versions are you targeting?

4.4.4

Which PHP version are you targeting?

8.2.4

Which Web server is JCB running on?

Apache 2.4

Which Relational Database is JCB running on?

MySql 8.0

Which OS is JCB running on?

Windows 11

Which JCB version are you using?

3.2.1-rc3

Where in JCB did this issue occur?

Site View(admin_view)

On which browsers did you encounter the issue?

Firefox, Chrome

Additional Comments

No response

### What Happened? The class <Entity>Model in the frontend has a wrong prepareTable method: the first line is $date = $this->getDatabase(); while it should be $date = Factory::getDate(); So, when I try to save an entity from the frontend I get the error 'Call to undefined method Joomla\Database\Mysqli\MysqliDriver::toSql()'; with my fix, everything works fine ### Steps to reproduce the Bug Create a frontend view and try to save (new or old is the same) ### Which Joomla version are you compiling in? 3.10.12 ### Which PHP version are you compiling in? 8.2.2 ### Which Joomla versions are you targeting? 4.4.4 ### Which PHP version are you targeting? 8.2.4 ### Which Web server is JCB running on? Apache 2.4 ### Which Relational Database is JCB running on? MySql 8.0 ### Which OS is JCB running on? Windows 11 ### Which JCB version are you using? 3.2.1-rc3 ### Where in JCB did this issue occur? Site View(admin_view) ### On which browsers did you encounter the issue? Firefox, Chrome ### Additional Comments _No response_
Polmock added the
Bug
label 2024-05-02 14:33:49 +00:00
Robot referenced this issue from a commit 2024-05-03 05:48:12 +00:00
Robot referenced this issue from a commit 2024-05-03 05:52:57 +00:00
Robot referenced this issue from a commit 2024-05-03 05:54:33 +00:00
Author

fixed in 3.2.1-rc5

fixed in 3.2.1-rc5
Robot referenced this issue from a commit 2024-05-10 16:07:45 +00:00
Robot referenced this issue from a commit 2024-05-10 16:12:54 +00:00
Robot referenced this issue from a commit 2024-05-10 16:15:25 +00:00
Robot referenced this issue from a commit 2024-05-10 16:34:27 +00:00
Robot referenced this issue from a commit 2024-05-10 16:35:57 +00:00
Robot referenced this issue from a commit 2024-05-10 16:39:50 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1115
No description provided.