Duplicate Surveys is Broken #4428

Open
opened 2026-02-20 16:17:19 -05:00 by deekerman · 3 comments
Owner

Originally created by @markbond1007 on GitHub (Nov 9, 2020).

Issue

There are actually two issues here although I suspect they are related.

  1. Duplicating a survey with entries added, fails with an error message about editing surveys with entries
  2. Duplicating an empty survey copies the survey but MOVES the questions (ie the questions appear okay on the new survey but are deleted from the old one)

Expected Behavior

At least in 2 above the both the original survey and the new one should have the questions attached.

Actual Behavior

The questions in the original survey are missing after the duplication. I suspect that the attempt to move rather than duplciate is why the error in 1) above happens.

Possible Fix

Steps to Reproduce

  1. Create a Survey with questions
    2.Duplicate the survey
    3.Check the original survey and see the questions missing

Context

Your Environment

  • SuiteCRM Version used:7.11
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)):
  • Environment name and version (e.g. MySQL, PHP 7):
  • Operating System and version (e.g Ubuntu 16.04):
Originally created by @markbond1007 on GitHub (Nov 9, 2020). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> <!--- If you have discovered a security risk please report it by emailing security@suitecrm.com. This will be delivered to the product team who handle security issues. Please don't disclose security bugs publicly until they have been handled by the security team. ---> #### Issue <!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> <!--- Ensure that all code ``` is surrounded ``` by triple back quotes. This can also be done over multiple lines --> There are actually two issues here although I suspect they are related. 1) Duplicating a survey with entries added, fails with an error message about editing surveys with entries 2) Duplicating an empty survey copies the survey but MOVES the questions (ie the questions appear okay on the new survey but are deleted from the old one) #### Expected Behavior <!--- Tell us what should happen --> At least in 2 above the both the original survey and the new one should have the questions attached. #### Actual Behavior <!--- Tell us what happens instead --> <!--- Also please check relevant logs (suitecrm.log, php error.log etc.) --> The questions in the original survey are missing after the duplication. I suspect that the attempt to move rather than duplciate is why the error in 1) above happens. #### Possible Fix <!--- Not obligatory, but suggest a fix or reason for the bug --> #### Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1. Create a Survey with questions 2.Duplicate the survey 3.Check the original survey and see the questions missing 4. #### Context <!--- How has this bug affected you? What were you trying to accomplish? --> <!--- If you feel this should be a low/medium/high priority then please state so --> #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used:7.11 * Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): * Environment name and version (e.g. MySQL, PHP 7): * Operating System and version (e.g Ubuntu 16.04):
Author
Owner

@johnM2401 commented on GitHub (Nov 10, 2020):

Hey,

I am able to see Issue 1

However, I'm seeing the inverse of No. 2 on 7.11.1.7
(Old Survey keeps its Questions, New Survey is created with no Questions)

Which subversion of 7.11.x are you on, by chance?
It will be good to know where there is a difference in functionality.

@johnM2401 commented on GitHub (Nov 10, 2020): Hey, I am able to see Issue 1 However, I'm seeing the inverse of No. 2 on 7.11.1.7 (Old Survey keeps its Questions, New Survey is created with no Questions) Which subversion of 7.11.x are you on, by chance? It will be good to know where there is a difference in functionality.
Author
Owner

@markbond1007 commented on GitHub (Nov 10, 2020):

@johnM2401

That will teach me to rush things, I thought I'd added that. Anyway its 7.11.15 before I tested there I had tested on 7.11.5 and had the problem you mentioned, when searching there was some issues with copying Surveys that already had responses hence I set up a dev site for our client and upgraded to the latest (this was about 3-4 weeks ago). Since then they have tested again and this is the issue now discovered.

Regards

Mark

@markbond1007 commented on GitHub (Nov 10, 2020): @johnM2401 That will teach me to rush things, I thought I'd added that. Anyway its 7.11.15 before I tested there I had tested on 7.11.5 and had the problem you mentioned, when searching there was some issues with copying Surveys that already had responses hence I set up a dev site for our client and upgraded to the latest (this was about 3-4 weeks ago). Since then they have tested again and this is the issue now discovered. Regards Mark
Author
Owner

@johnM2401 commented on GitHub (Nov 10, 2020):

Hey @markbond1007

I've given it a quick try in both 7.11.15 & 7.11.5
Interestingly, I am also seeing the inverse on these versions
(Old Survey keeps Questions / New does not)

Either way, I'd agree that there is an issue here.
(Either it behaves as you have described or, if how I've seen, I believe it should carry over questions onto the new survey)

So I've labeled this as a Bug

Thank you for your response!

@johnM2401 commented on GitHub (Nov 10, 2020): Hey @markbond1007 I've given it a quick try in both 7.11.15 & 7.11.5 Interestingly, I am also seeing the inverse on these versions (Old Survey keeps Questions / New does not) Either way, I'd agree that there is an issue here. (Either it behaves as you have described or, if how I've seen, I believe it should carry over questions onto the new survey) So I've labeled this as a Bug Thank you for your response!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#4428
No description provided.