-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression 3.7: last template style preview not working #13637
Comments
Feel free to send a PR that fix it :) |
Please open a PR at your end or merge the issue to the 3.7 branch |
I'm confused. What should be merged to what? As we are in development of 3.7.0 the staging branch contains the code for 3.7.0 and an issue cant be merged to anything? |
I'm confused too. I've just reported a regression issue that have to be fixed. |
You provided a code solution in your issue and were asked to open a pull request containing your code changes to address the issue. However also note that section of code purposefully changed in #12688 to address another issue so you will need to validate your proposed changes do not introduce other regressions. |
Well that's not the case, i didn't provided a code solution but only posted and compared the current Joomla 3.6 code and the new Joomla 3.7 code that has the issue. |
Unfortunately just posting a snippet of the 3.6.5 code and saying "this works" doesn't help much, especially since the file's history indicates several changes made in the class (and that method specifically). Isolating a particular change would be helpful because right now there are at least 4 changes to that method alone compared to 3.6.5. |
Can't confirm Issue on latest 3.7-staging. |
Probably because the pull request for this issue was merged 3 days ago. |
Steps to reproduce the issue
Install a new template on Joomla 3.7
Try to open the preview using the URL such as:
http://joomla37/?template=mytemplate
Expected result
The frontend uses the latest installed template named 'mytemplate'
Actual result
The default template is still used
System information (as much as possible)
The code change in site.php included in the function 'getTemplate' caused the regression.
Working code on Joomla 3.6.5:
Regression code on Joomla 3.7, the 'by reference' variable $template is overwritten in the final $template = $templates[0]; so the latest template style is lost in the $templates array.
Additional comments
The text was updated successfully, but these errors were encountered: