? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
28 Jun 2018

As title says.

Summary of Changes

the code in the Install Languages template was counting substrings. Switching to a count of 6 created the bug.
Replacing the entire line by the same code we use when installing languages at Joomla install time solves the issue.

Testing Instructions

Load administrator/index.php?option=com_installer&view=languages

Before patch

screen shot 2018-06-28 at 09 37 31

After patch

screen shot 2018-06-28 at 09 36 56

Documentation Changes Required

None

avatar infograf768 infograf768 - open - 28 Jun 2018
avatar infograf768 infograf768 - change - 28 Jun 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Jun 2018
Category Administration com_installer
avatar infograf768 infograf768 - change - 28 Jun 2018
The description was changed
avatar infograf768 infograf768 - edited - 28 Jun 2018
avatar imanickam
imanickam - comment - 28 Jun 2018

#20906 I have tested this successfully (using Joomla! 3.8.10).

Please review the image attached.

after_applying_the_patch_20906

avatar imanickam imanickam - test_item - 28 Jun 2018 - Tested successfully
avatar imanickam
imanickam - comment - 28 Jun 2018

I have tested this item successfully on fdc178e

The Patch has been tested successfully. Please review my earlier response with screenshot.


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

avatar brianteeman
brianteeman - comment - 28 Jun 2018

Before accepting this change we must understand what change caused this. The file itself has not changed for a long time so the cause is elsewhere and may effect other things. We have to stop applying band aids, they come off in the wash.

avatar infograf768
infograf768 - comment - 28 Jun 2018

Read the code.
The reason is the version switch from 3.x.x to 3.x.xx
We had
<?php if (substr($language->version, 0, 3) != $minorVersion || substr($language->version, 0, 5) != $currentShortVersion) : ?>

substr($language->version, 0, 5) was OK when version was below 10 as 3.8.x is equal to 5.
as soon as we switched to 3.8.10 we have 6 substrings which evidently kills this code.

The code in installation which is used now in this PR does not take into account the number of substrings.

avatar csthomas
csthomas - comment - 28 Jun 2018

This patch works, but

Is below condition required?

strpos($language->version, $minorVersion) !== 0 || // '3.8.10.1' starts with '3.8'

After that we compare whole version, e.g. '3.8.10.1' starts with '3.8.10'

avatar infograf768
infograf768 - comment - 28 Jun 2018

@csthomas
honestly i did not want to also deal with this in the pr. just used the code that already works.
i suggest to let it alone for now and review if necessary for 4.0
still need atester to rtc

avatar ot2sen ot2sen - test_item - 28 Jun 2018 - Tested successfully
avatar ot2sen
ot2sen - comment - 28 Jun 2018

I have tested this item successfully on fdc178e

Patch works fine for the install languages list. Correctly shows in green after patch applied.

  • But, the main language view have the same issue, even for English. Should this be fixed in this same issue?

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20906.
avatar ot2sen
ot2sen - comment - 28 Jun 2018

28-06-2018_lang_version_test

avatar infograf768
infograf768 - comment - 28 Jun 2018

@ot2sen
you are perfectly right. Should be same change. Will do after siesta.

avatar infograf768 infograf768 - change - 28 Jun 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 28 Jun 2018
Category Administration com_installer Administration com_installer com_languages
avatar infograf768
infograf768 - comment - 28 Jun 2018
avatar imanickam imanickam - test_item - 28 Jun 2018 - Tested successfully
avatar imanickam
imanickam - comment - 28 Jun 2018

I have tested this item successfully on 232cea9

Tested the revised patch and found that all the three screens (listed below) display the color of the language version labels correctly:

Extensions: Install Languages

Languages: Installed (Administrator)
Lanugages: Installed (Site)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20906.
avatar ReLater ReLater - test_item - 28 Jun 2018 - Tested successfully
avatar ReLater
ReLater - comment - 28 Jun 2018

I have tested this item successfully on 232cea9


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

avatar ot2sen ot2sen - test_item - 28 Jun 2018 - Tested successfully
avatar ot2sen
ot2sen - comment - 28 Jun 2018

I have tested this item successfully on 232cea9

Both lists works fine now after last update of PR


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

avatar Quy Quy - change - 28 Jun 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 28 Jun 2018

RTC


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

avatar mbabker mbabker - close - 29 Jun 2018
avatar mbabker mbabker - merge - 29 Jun 2018
avatar mbabker mbabker - change - 29 Jun 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-06-29 01:39:51
Closed_By mbabker
Labels Added: ?

Add a Comment

Login with GitHub to post a comment