? Success

User tests: Successful: Unsuccessful:

avatar ggppdk
ggppdk
1 Nov 2016

Pull Request for Issue #12651

Summary of Changes

The home template styles are cloned, inside the foreach loop (see the modified code) and then added to the same array: $templates

as $templates[0]

thus parameters creation for template home: $templates[0]
will happen twice

Testing Instructions

Styles are applied as configured

Documentation Changes Required

none

avatar ggppdk ggppdk - open - 1 Nov 2016
avatar ggppdk ggppdk - change - 1 Nov 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 1 Nov 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 1 Nov 2016
Category Libraries
avatar ggppdk ggppdk - change - 1 Nov 2016
The description was changed
avatar ggppdk ggppdk - edited - 1 Nov 2016
avatar SharkyKZ
SharkyKZ - comment - 2 Nov 2016

Default template seems to work fine but setting template via URL does not, params are still missing.

avatar ggppdk
ggppdk - comment - 2 Nov 2016

@SharkyKZ
Thanks, i have fixed that case too with last commt:

The array $templates, already has parameters created for all template
then we select just template override, there is no reason to try to create parameters again

@Espionage724 @csiteru
Please test

avatar SharkyKZ SharkyKZ - test_item - 2 Nov 2016 - Tested successfully
avatar SharkyKZ
SharkyKZ - comment - 2 Nov 2016

I have tested this item successfully on 5b4816f


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12688.

avatar ggppdk ggppdk - edited - 2 Nov 2016
avatar ggppdk ggppdk - change - 2 Nov 2016
Title
Fix double parameters creation for parameters of home style
Fix double parameters creation for parameters of home template and of template override
avatar csiteru
csiteru - comment - 2 Nov 2016

@ggppdk I have not changed with the latest madifications. All T3 templates have default settings...

avatar ggppdk
ggppdk - comment - 2 Nov 2016

@csiteru

They may have similar problem in their custom, myself i usually use 2 other template makers, but i think have a few from them too, if i get time i might test T3 template case

  • you may notify the template maker about the issue, and link to this discussion
avatar dgt41 dgt41 - test_item - 3 Nov 2016 - Tested successfully
avatar dgt41
dgt41 - comment - 3 Nov 2016

I have tested this item successfully on 5b4816f


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12688.

avatar dgt41 dgt41 - change - 3 Nov 2016
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 3 Nov 2016

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12688.

avatar joomla-cms-bot joomla-cms-bot - change - 3 Nov 2016
Labels Added: ?
avatar zero-24 zero-24 - change - 3 Nov 2016
Milestone Added:
avatar zero-24 zero-24 - reference | 35bfa3a - 3 Nov 16
avatar zero-24 zero-24 - merge - 3 Nov 2016
avatar zero-24 zero-24 - close - 3 Nov 2016
avatar zero-24 zero-24 - change - 3 Nov 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-11-03 16:50:08
Closed_By zero-24
avatar zero-24 zero-24 - close - 3 Nov 2016
avatar zero-24 zero-24 - merge - 3 Nov 2016
avatar joomla-cms-bot joomla-cms-bot - close - 3 Nov 2016
avatar zero-24
zero-24 - comment - 3 Nov 2016

Thanks!

avatar joomla-cms-bot joomla-cms-bot - change - 3 Nov 2016
Labels Removed: ?
avatar csiteru
csiteru - comment - 3 Nov 2016

Hi!
I found the bug why the template style always is set default on my site on j3.6.4.
When SEF is off, in https://github.com/joomla/joomla-cms/blob/5b4816f32aa4f773a78ae4d302dd4c38dff9d8f5/libraries/cms/application/site.php#L440 is set right ItemId and template is set right. But is SEF is ON, This function returns 0 and $id set = 0 in line 448 ($id = $item->template_style_id). Thats why
$template = $templates[$id]; is always = 0, and template style set defaunt.
https://github.com/joomla/joomla-cms/blob/5b4816f32aa4f773a78ae4d302dd4c38dff9d8f5/libraries/cms/application/site.php#L506

avatar ggppdk
ggppdk - comment - 3 Nov 2016

@csiteru
This is not directly related to what this PR fixes, you should open a new issue with a good description

avatar csiteru
csiteru - comment - 3 Nov 2016

@ggppdk
Unfortunately, I can explain only very badly in English =(
I'll try to make a video

avatar ggppdk ggppdk - head_ref_deleted - 3 Nov 2016
avatar zero-24
zero-24 - comment - 3 Nov 2016

Yes please open a new issue with that video than :)

avatar PhilETaylor PhilETaylor - reference | 7ea3a7b - 6 Nov 16
avatar nvyush nvyush - reference | a281dd6 - 9 Nov 16
avatar leetempest
leetempest - comment - 10 Nov 2016

Does anyone have a fix when using a T3 template with two assigned styles running on 3.6.4? I have a logged in area I need to use a different template / menu system on but it is always displaying the default template when seo is turned on. Thanks

avatar brianteeman
brianteeman - comment - 10 Nov 2016

I suggest that you contact t3 diectly as we can only support issues in the
Joomla core

On 10 November 2016 at 15:52, Lee Tempest notifications@github.com wrote:

Does anyone have a fix when using a T3 template with two assigned styles
running on 3.6.4? I have a logged in area I need to use a different
template / menu system on but it is always displaying the default template
when seo is turned on. Thanks


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#12688 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8eNJbKKwHB_mx1wT-dWrN0gTTjPAks5q8y-qgaJpZM4Kmly9
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

Add a Comment

Login with GitHub to post a comment