Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

get_question_properties return array, set_question_properties input array

  • bpresentati
  • bpresentati's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 months 1 day ago #264945 by bpresentati
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.5.4+240422 
Own server or LimeSurvey hosting: own server
Survey theme/template: 
Fruity TwentyThree
==================
Hello, 
Longtime user of the Remote Control API on Limesurvey 3.22.28+200728 , now we've migrated to  6.5.4+240422   and I've noticed some things do not behave the same. Most importantly, the get_question_properties API call no longer returns a "question" field - with the question text in it. Similarly, the "set_question_properties" API call no longer seems to accept a similar field, so it is impossible to update the question text using the API, which is a shame since it was a functionality I use quite a bit. Is there still a way to access/change the "question" property like in the older LS version? Am I missing something? 

To help visualize what I mean, here is the return array for "get_question_properties" from LS 3.22: 
 

And here is what I get in LS 6:
 


Also, since I'm a heavy user of the API, I'd like to learn more about it, and possible even contribute to its development. Where/how can I do that?

Thank you all for your time!

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 months 17 hours ago #264947 by DenisChenu
Seems it's an issue looking at code : please report the issue
github.com/LimeSurvey/LimeSurvey/blob/2e...rol_handle.php#L1689

For set_question : must work near same : github.com/LimeSurvey/LimeSurvey/blob/2e...rol_handle.php#L1887

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: bpresentati

Please Log in to join the conversation.

  • bpresentati
  • bpresentati's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 months 11 hours ago #264953 by bpresentati
Thanks Denis!

Yeah, you are right, the set_question works, but only if you also supply the language, which is a weird thing you didn't have to do before.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 months 8 hours ago #264961 by DenisChenu
Solutions :
1. community.limesurvey.org/bug-tracker/ then it was fixed in a future release
2. Fix it via a plugin gitlab.com/SondagesPro/RemoteControl/extendRemoteControl to have it quicker

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose