? Success

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
11 Mar 2015

If Joomla is requested via POST, we might have already a language defined via the URL and thus don't need to fall back on the cookie value.

Example:
Request via POST to "index.php" => No language given, falling back to cookie or default language
Request via POST to "index.php?lang=en" => Language given, no need to fall back to something else
Request via POST to "/en/component/content/42" => Language given, no need to fall back to something else

Without this path, the last 2 examples will fall back to the default language.

avatar Hackwar Hackwar - open - 11 Mar 2015
avatar zero-24 zero-24 - change - 11 Mar 2015
Easy No Yes
avatar joomla-cms-bot joomla-cms-bot - change - 11 Mar 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 12 Mar 2015
Category Plugins Router / SEF
avatar zero-24 zero-24 - change - 14 Mar 2015
Status Pending Ready to Commit
avatar aruttkamp
aruttkamp - comment - 14 Mar 2015

tested - ok


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6400.
avatar brianteeman brianteeman - alter_testresult - 14 Mar 2015 - aruttkamp: Tested successfully
avatar kolvar kolvar - test_item - 14 Mar 2015 - Tested successfully
avatar zero-24
zero-24 - comment - 14 Mar 2015

RTC based on testing by @aruttkamp and @kolvar Thanks


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6400.
avatar infograf768
infograf768 - comment - 16 Mar 2015

let's wait the cookie issue is solved to look at this one again.

avatar Hackwar
Hackwar - comment - 16 Mar 2015

Why? Should we stop looking at issues in JForm, too, because of the cookie issue? Those 2 are completely different topics.

avatar infograf768
infograf768 - comment - 16 Mar 2015

they may be, but it is likely that the languagefilter code will be changed in an important way to solve the cookie issue. Therefore this would have, if still necessary, to be adapted.

avatar Hackwar
Hackwar - comment - 16 Mar 2015

The proposal by @Bakual does not touch this code.

avatar Bakual
Bakual - comment - 16 Mar 2015

What I wonder is if the whole if clause makes sense. The comment says we don't care about language, but we actually do care now. Or am I wrong?

avatar gwsdesk
gwsdesk - comment - 16 Mar 2015

@test works4me . I cannot judge if sense or not. The tests of PR by Bakual were successful (2/3 tests). I tested this now with #6452 installed and this still works4me

avatar Hackwar
Hackwar - comment - 16 Mar 2015

The comment might have to be adapted.

avatar Kubik-Rubik
Kubik-Rubik - comment - 16 Mar 2015

Works as described, thanks @Hackwar!

avatar Kubik-Rubik Kubik-Rubik - change - 16 Mar 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-03-16 14:14:41
avatar Kubik-Rubik Kubik-Rubik - close - 16 Mar 2015
avatar Kubik-Rubik Kubik-Rubik - reference | - 16 Mar 15
avatar Kubik-Rubik Kubik-Rubik - merge - 16 Mar 2015
avatar Kubik-Rubik Kubik-Rubik - close - 16 Mar 2015
avatar nonumber
nonumber - comment - 16 Mar 2015

The $lang_code could be not initialised in your check yet.
So shouldn't it be:

if (!isset($lang_code))
avatar Hackwar Hackwar - head_ref_deleted - 16 Mar 2015
avatar Kubik-Rubik
Kubik-Rubik - comment - 16 Mar 2015

@nonumber Thank you for the catch, fixed with: #6458

Add a Comment

Login with GitHub to post a comment