HtmlView.php get this code added when a custom button is created for a site view:
// Add the needed Javascript to insure that the buttons work.
Html::_('behavior.framework', true);
$this->getDocument()->addScriptDeclaration("Joomla.submitbutton = function(task){if (task == ''){ return false; } else { Joomla.submitform(task); return true; }}");
I think Html::_('behavior.framework', true);
Should be changed to Html::_('jquery.framework', true);
Steps to reproduce the Bug
Create a custom button on a site view. Compile for Joomla 5 and test the view in frontend.
Which Joomla version are you compiling in?
v5.2.0 rc2
Which PHP version are you compiling in?
v8.1
Which Joomla versions are you targeting?
v5
Which PHP version are you targeting?
8.1
Which Web server is JCB running on?
Apache 2.4
Which Relational Database is JCB running on?
MariaDB
Which OS is JCB running on?
Ubuntu 20.04.6
Which JCB version are you using?
5.0.4-alpha3
Where in JCB did this issue occur?
Site View(admin_view)
On which browsers did you encounter the issue?
Safari
Additional Comments
No response
### What Happened?
HtmlView.php get this code added when a custom button is created for a site view:
```
// Add the needed Javascript to insure that the buttons work.
Html::_('behavior.framework', true);
$this->getDocument()->addScriptDeclaration("Joomla.submitbutton = function(task){if (task == ''){ return false; } else { Joomla.submitform(task); return true; }}");
```
I think
`Html::_('behavior.framework', true);`
Should be changed to
`Html::_('jquery.framework', true);`
### Steps to reproduce the Bug
Create a custom button on a site view. Compile for Joomla 5 and test the view in frontend.
### Which Joomla version are you compiling in?
v5.2.0 rc2
### Which PHP version are you compiling in?
v8.1
### Which Joomla versions are you targeting?
v5
### Which PHP version are you targeting?
8.1
### Which Web server is JCB running on?
Apache 2.4
### Which Relational Database is JCB running on?
MariaDB
### Which OS is JCB running on?
Ubuntu 20.04.6
### Which JCB version are you using?
5.0.4-alpha3
### Where in JCB did this issue occur?
Site View(admin_view)
### On which browsers did you encounter the issue?
Safari
### Additional Comments
_No response_
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What Happened?
HtmlView.php get this code added when a custom button is created for a site view:
I think
Html::_('behavior.framework', true);Should be changed to
Html::_('jquery.framework', true);Steps to reproduce the Bug
Create a custom button on a site view. Compile for Joomla 5 and test the view in frontend.
Which Joomla version are you compiling in?
v5.2.0 rc2
Which PHP version are you compiling in?
v8.1
Which Joomla versions are you targeting?
v5
Which PHP version are you targeting?
8.1
Which Web server is JCB running on?
Apache 2.4
Which Relational Database is JCB running on?
MariaDB
Which OS is JCB running on?
Ubuntu 20.04.6
Which JCB version are you using?
5.0.4-alpha3
Where in JCB did this issue occur?
Site View(admin_view)
On which browsers did you encounter the issue?
Safari
Additional Comments
No response
The issue is in /libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Helper/Interpretation.php on line 5335