View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
12499Bug reportsTheme editorpublic2018-01-15 10:41
ReporterDenisChenu Assigned ToLouisGac 
PriorityhighSeverityminor 
Status closedResolutionfixed 
Summary12499: Home page (and surely some other : 404 etc ...) don't have language
Description

Home page language is null, same for dir. Because langauge is taken by survey on not by Yii::app()->getLanguage

And title is empty too.

Steps To Reproduce

Look at source of survey listing

Additional Information

Currently i din't kow if we can get Yii in twig views ? Mayb Yii or Yii::app() can be added : but then template updater have a lot of rights in template.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)20170701
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Users monitoring this issue

There are no users monitoring this issue.

Activities

LouisGac

LouisGac

2017-07-04 14:56

developer   ~44035

https://github.com/LimeSurvey/LimeSurvey/blob/develop/application/core/LSETwigViewRenderer.php#L186

DenisChenu

DenisChenu

2017-07-04 15:22

developer   ~44038

Can extend EM or add again function callable by twig ?

DenisChenu

DenisChenu

2017-07-04 16:45

developer   ~44040

About the link : related to survey. No survey in 404 or home page (and maybe elsewhere).

In fact we must use Yii::app()->getLanguage() : 2 solution : add it to EM knowVars (think it's a must have even without thi issue) + adding the test rtl function ?

LouisGac

LouisGac

2017-11-16 18:29

developer   ~45100

Fix committed to develop branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=24897

c_schmitz

c_schmitz

2018-01-15 10:41

administrator   ~45767

Version 3.0.3 released.

Related Changesets

LimeSurvey: develop f71da5c2

2017-11-16 18:27:56

LouisGac

Details Diff
Fixed issue 12499: Home page (and surely some other : 404 etc ...) don't have language Affected Issues
12499
mod - application/core/LSETwigViewRenderer.php Diff File

Issue History

Date Modified Username Field Change
2017-07-01 16:21 DenisChenu New Issue
2017-07-04 14:56 LouisGac Note Added: 44035
2017-07-04 15:22 DenisChenu Assigned To => LouisGac
2017-07-04 15:22 DenisChenu Status new => feedback
2017-07-04 15:22 DenisChenu Note Added: 44038
2017-07-04 16:45 DenisChenu Note Added: 44040
2017-07-04 16:45 DenisChenu Status feedback => assigned
2017-10-23 11:33 LouisGac Priority none => high
2017-11-16 18:20 LouisGac Sticky Issue No => Yes
2017-11-16 18:28 LouisGac Status assigned => resolved
2017-11-16 18:28 LouisGac Resolution open => fixed
2017-11-16 18:28 LouisGac Sticky Issue Yes => No
2017-11-16 18:29 LouisGac Changeset attached => LimeSurvey develop f71da5c2
2017-11-16 18:29 LouisGac Note Added: 45100
2018-01-15 10:41 c_schmitz Note Added: 45767
2018-01-15 10:41 c_schmitz Status resolved => closed