[BUG]: Wrong prepareTable implementations #1115
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#1115
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
fixed in 3.2.1-rc5