Hi Everyone.
We are currently running the current version of LS.
$config = '3.14.11';
$config = 355;
$config = '180926';
$config = true;
$config = '30059';
We have a survey which utilizes the Panel Integration capabilities to capture variables passed in via the query string. In our case, the parameter is named "segment" and it is mapped to a hidden question.
The issue we are encountering is the Welcome Page is not displayed correctly in situations where a participant clicks the survey link, lands on the Welcome Page, chooses not to take the survey at this time, and clicks the link later to return to complete the survey.
We believe the issue is related to a record being written to the "survey_####### " table to store the query string parameter and setting the "lastpage" equal to -1.
When the participant returns later, they receive a window with a negative (-200%) progress number and no welcome text. We tried dropping the Welcome Page and using text on a survey page but still continue to encounter the issue.
Steps to reproduce:
1) setup survey
2) create dummy tokens and activate survey
3) construct survey URL which includes segment and token query string variables
Code:
http://localhost:8080/index.php?r=survey/index&sid=648628&lang=en&segment=0&token=LFHiCzwkJr9LojB
4) open constructed link in Incognito window
5) Land on first page but take no further action
6) Close Incognito window
7) Open new Incognito Window with same constructed URL
You should see a screen similar to the screenshot labeled "no welcome message" which is attached.
I've attached screenshots as well as sample surveys which should allow for reproduction of the issue. 648628 utilizes the normal welcome page and 639921 attempts to shift the Welcome message to a text block within a Question Group.
The issue seems to reside with the DB record written to store the Panel Integration variable which notes the "lastpage" with a value of -1. Based upon the PHP and progress_bar.twig debugging performed, the -1 causes issues with the progress calculation and the rendering of the "first page".
With debug=1, there is a PHP warning displayed but it seems to occur upstream of the actual issue. Screenshots attached just in case.
Any thoughts or suggestions would be welcomed.
Thanks in advance.