View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
14759Bug reportsTheme editorpublic2020-05-06 08:56
ReporterDenisChenu Assigned ToLouisGac 
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version3.17.x 
Summary14759: Broken Theme API
Description

https://github.com/LimeSurvey/LimeSurvey/commit/42c1de610490ecf3431cb6193d3b4382ecd1e80d is an API broker

Steps To Reproduce

Import included theme : add or not a logo in theme

Additional Information

It's an API broker and an uneeded system : imageSrc return false for invalid image : it's clean , return ERROR : really not clean.

        {# Logo option #}
        {% if( aSurveyInfo.options.brandlogo == "on" or imageSrc("upload/surveys/"~processString("{SID}")~"/images/logo.png") ) %}
            <div class="{{ aSurveyInfo.class.navbarbrand }} logo-container hidden-xs"  {{ aSurveyInfo.attr.navbarbrand }}  >
                {% if(imageSrc("upload/surveys/"~processString("{SID}")~"/images/logo.png") ) %}
                    {{ image("upload/surveys/"~processString("{SID}")~"/images/logo.png", aSurveyInfo.name, {"class": "logo img-responsive"}) }}
                {% else %}
                  {{ image(aSurveyInfo.options.brandlogofile, aSurveyInfo.name, {"class": "logo img-responsive"}) }}
                {% endif %}
            </div>
        {% else %}
            <div class="{{ aSurveyInfo.class.navbarbrand }}"  {{ aSurveyInfo.attr.navbarbrand }} >
                {{ aSurveyInfo.name }}
            </div>
        {% endif %}
TagsNo tags attached.
Attached Files
Bug heat2
Complete LimeSurvey version number (& build)3.17.2 github
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

DenisChenu

DenisChenu

2019-04-09 16:13

developer   ~51429

Oups the zip

apiBroke_vanilla.zip (112,946 bytes)

Issue History

Date Modified Username Field Change
2019-04-09 16:13 DenisChenu New Issue
2019-04-09 16:13 DenisChenu Status new => assigned
2019-04-09 16:13 DenisChenu Assigned To => LouisGac
2019-04-09 16:13 DenisChenu File Added: apiBroke_vanilla.zip
2019-04-09 16:13 DenisChenu Note Added: 51429
2020-05-06 08:56 DenisChenu Status assigned => closed
2020-05-06 08:56 DenisChenu Resolution open => fixed