1

Topic: Survey owner not saved

Hi,
I try to save a survey with an owner via the data service, but the owner is not saved. Here is my json:

 
 submission: {
   "id": "survey",
   "fields": {
      "owner_id": {"value": "2943"},
      "title": {"value": "JUNIT-TESTS Wed Sep 03 16:02:54 CEST 201497798923-4537-411b-8ec8-3d2168ed6b90"},
      "website_id": {"value": "2"}
   }
}

There is a person with the id 2943, and if I edit a survey in the database the owner will be delivered by the data service.

Regards

Daniel

P.S.: why are survey owners not exposed by the admin backend

2

Re: Survey owner not saved

Hi Daniel
This was something designed into the original data model but we've not used it over here, so we didn't spot the mistake. I've now committed a fix to the application/models/survey.php file so that this field will save. Would you be able to add a control to the view for editing surveys and submit a patch?
Best wishes
John

John van Breda
Biodiverse IT