View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
17281Bug reportsRemoteControlpublic2021-06-09 13:56
Reporterpuitsc Assigned Toollehar  
PrioritynormalSeveritypartial_block 
Status feedbackResolutionopen 
Product Version4.5.x 
Summary17281: set_question_properties fails with error "table ls_questions does not have a column named 'language'"
Description

When updating a question or help text using remote control, I get the error message "table ls_questions does not have a column named 'language'".

Steps To Reproduce

Calling set_question_properties($sSessionKey, $iQuestionID, $aQuestionData, $sLanguage = null) with

valid sSessionKey and iQuestionID and

$aQuestionData['title'] = 'Updated Question';
$sLanguage = 'de';

Additional Information

set_group_properties processes $aGroupData['questiongroupl10ns'][$language] whereas set_question_properties seems to be not yet updated to the new L10N structure.

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)4.5.2+210426
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMaria DB 10.3.27
Server OS (if known)
Webserver software & version (if known)
PHP Version7.2.24

Users monitoring this issue

floms

Activities

ollehar

ollehar

2021-05-04 17:25

administrator   ~64226

@gabrieljenik You want to fix this one?

puitsc

puitsc

2021-05-04 17:54

reporter   ~64232

@ollehar @gabrieljenik - I gave it a try and used the set_group_properties function - please feel free to use the code

I wasn't sure how to handle the $sLanguage paramenter though.

set_question_properties.txt (7,432 bytes)   
floms

floms

2021-06-07 18:31

reporter   ~64772

push

ollehar

ollehar

2021-06-09 13:55

administrator   ~64799

@puitsc Can you make a PR for this, perhaps?

Issue History

Date Modified Username Field Change
2021-05-03 14:02 puitsc New Issue
2021-05-04 17:24 ollehar Priority none => normal
2021-05-04 17:25 ollehar Note Added: 64226
2021-05-04 17:54 puitsc Note Added: 64232
2021-05-04 17:54 puitsc File Added: set_question_properties.txt
2021-05-12 21:02 floms Issue Monitored: floms
2021-06-07 18:31 floms Note Added: 64772
2021-06-09 13:55 ollehar Note Added: 64799
2021-06-09 13:56 ollehar Assigned To => ollehar
2021-06-09 13:56 ollehar Status new => feedback