View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
16907Bug reportsRemoteControlpublic2023-05-15 14:53
Reportergabrieljenik Assigned Toc_schmitz  
PrioritylowSeveritypartial_block 
Status closedResolutionfixed 
Product Version3.25.4 
Summary16907: Importing Question through Remote Control doesn't set new title for all languages
Description

When importing question holding multiple languages through Remote Control, the new title parameter is not applied to all languages, but just for the first one.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)3.25.4
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMysql
Server OS (if known)
Webserver software & version (if known)
PHP Version7

Relationships

related to 18070 closedtibor.pacalat Importing Question through Remote Control doesn't set text for all languages 
related to 18071 closedadamzammit Importing Question through Remote Control may fail if the imported question already exists 

Users monitoring this issue

There are no users monitoring this issue.

Activities

gabrieljenik

gabrieljenik

2020-12-14 20:26

manager   ~60949

Possibly same happens on LS4

gabrieljenik

gabrieljenik

2022-05-02 21:15

manager   ~69359

PR: https://github.com/LimeSurvey/LimeSurvey/pull/2387

There are several problems with importing questions.

1) The new "title" is only set in the first language (it is the problem of the ticket).
2) The new question text is also set to the first language only.
3) The new "title" is set after importing. In other words, if you want to import a question, whose title already exists, but set it at the moment (through the API call), you can't, because before setting the new one, the process will fail because of the duplication.

This particular ticket is simple, because the title has to always be the same. The text of the question is more complicated because setting the same text in all languages does not make sense. This ticket is only limited to item 1.

DenisChenu

DenisChenu

2022-05-06 10:32

developer   ~69462

https://github.com/LimeSurvey/LimeSurvey/pull/2405 with this too  …

Sorry : i didn't see you already work on same function with related issues …

gabrieljenik

gabrieljenik

2022-05-06 15:27

manager   ~69476

All good!

DenisChenu

DenisChenu

2023-03-27 18:23

developer   ~74288

I think it's totally broken in 5.X currently $oQuestion->setAttribute('question', $sNewqQuestion);
https://github.com/LimeSurvey/LimeSurvey/blob/b979829711536758064e7e6bfca8645a969f606f/application/helpers/remotecontrol/remotecontrol_handle.php#L1543

DenisChenu

DenisChenu

2023-03-28 19:06

developer   ~74298

https://github.com/LimeSurvey/LimeSurvey/pull/3016

tibor.pacalat

tibor.pacalat

2023-05-15 14:53

administrator   ~74970

This was already merged.

Issue History

Date Modified Username Field Change
2020-12-14 20:22 gabrieljenik New Issue
2020-12-14 20:25 gabrieljenik Issue cloned: 16908
2020-12-14 20:25 gabrieljenik Category Import/Export => RemoteControl
2020-12-14 20:26 gabrieljenik Note Added: 60949
2020-12-28 13:06 cdorin Priority none => low
2020-12-28 13:06 cdorin Status new => confirmed
2020-12-28 13:06 cdorin Sync to Zoho Project => |Yes|
2022-04-22 15:15 gabrieljenik Assigned To => gabrieljenik
2022-04-22 15:15 gabrieljenik Status confirmed => assigned
2022-05-02 21:15 gabrieljenik Status assigned => ready for testing
2022-05-02 21:15 gabrieljenik Note Added: 69359
2022-05-02 21:18 gabrieljenik Issue cloned: 18070
2022-05-02 21:18 gabrieljenik Relationship added related to 18070
2022-05-02 21:19 gabrieljenik Issue cloned: 18071
2022-05-02 21:19 gabrieljenik Relationship added related to 18071
2022-05-06 10:32 DenisChenu Note Added: 69462
2022-05-06 10:32 DenisChenu Bug heat 2 => 4
2022-05-06 15:27 gabrieljenik Note Added: 69476
2022-07-05 19:35 gabrieljenik Assigned To gabrieljenik => c_schmitz
2023-03-27 18:23 DenisChenu Note Added: 74288
2023-03-28 19:06 DenisChenu Note Added: 74298
2023-05-15 14:53 tibor.pacalat Status ready for testing => closed
2023-05-15 14:53 tibor.pacalat Resolution open => fixed
2023-05-15 14:53 tibor.pacalat Note Added: 74970
2023-05-15 14:53 tibor.pacalat Bug heat 4 => 6