User tests: Successful: Unsuccessful:
Pull Request for Issue #42011 .
You shall not bind multiple times with different values to the same bind variable in prepared SQL statements.
The :template
bind variable is used 2 times in the getListQuery
method of the StylesModel:
id:
):If both is used, the search box and the template filter, the same :template
variable is bound 2 times with different values.
This PR here fixes that by using different bind variables.
In either the admin or site template styles conduct a search that has no results
Then select a value in the "Template" filter.
SQL error "The number of variables must match the number of parameters in the prepared statement".
The only way to make the Template Styles view work again is to clear the session cookie.
Still see the no matching results message
Please select:
No documentation changes for docs.joomla.org needed
No documentation changes for manual.joomla.org needed
Thanks!