akvo / akvo-flow

A data collection and monitoring tool that works anywhere.
http://akvo.org/products/akvoflow/
GNU Affero General Public License v3.0
65 stars 31 forks source link

Question settings not shown properly after clicking on 'edit' of an existing question #1690

Closed janagombitova closed 8 years ago

janagombitova commented 8 years ago

When creating a copy of a non-monitored survey (will check monitored surveys later and add a comment) the survey is copied with all the questions, but once the user clicks on a question using 'edit' all the setting for that questions are changed.

I used: UAT1 > 1.9.8 UAT folder > Jana 1.9.8 > Jana 1.9.8 Non MF Surveys > 1.9.8 All questions survey

Steps:

  1. Created 1.9.8 All questions survey with all question types and multiple option questions to check how codes work and other settings
  2. Copied the survey into the same folder and copied the survey 2nd time into a different folder
  3. For both copies, when opening the survey all settings were fine, the preview showed the questions as they were set in the original survey and form, but after opening a question (any as it happened for all questions) by clicking on 'edit' the question name was as in the original survey, but the type was "free text" and all the settings were gone.
  4. After changing the question type to "option" the options were showed again as expected

screen shot 2016-06-06 at 13 58 13 screen shot 2016-06-06 at 13 59 16 screen shot 2016-06-06 at 14 08 30

This situation was reproduced for all questions in the copied survey

janagombitova commented 8 years ago

Actually, after checking the original survey I learned, that for already existing questions, once I open them by clicking on 'edit' the settings are changed to 'free text' regardless if it was copied or not. This will cause confusion as the user will think he lost his work and might not remember the question settings.

janagombitova commented 8 years ago

@muloem I checked this issue on UAT, here are the cases and results:

So, to conclude, once I move away from the survey and come back to it from a different page, the issue appears, as far as I can tell

(crossed checked on existing instances, all works fine without the issue)

janagombitova commented 8 years ago

Fixed by the rollback of the change that address the blank screen - https://github.com/akvo/akvo-flow/issues/1402 The blank page issue still needs to be addressed, but this issue is not present anymore