View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 17913 | Bug reports | Theme editor | public | 2022-02-28 13:02 | 2022-03-01 13:40 |
| Reporter | Mazi | Assigned To | c_schmitz | ||
| Priority | none | Severity | block | ||
| Status | closed | Resolution | not fixable | ||
| Product Version | 5.2.x | ||||
| Summary | 17913: Asterisk for mandatory questions is always shown after updating from LS 3.x to 5.x | ||||
| Description | At the fruity template at LS 3 we have this default code for showing the mandatory mark (red asterisk): If you extend the fruity theme and edit that file a little and then update your system, all questions are shown as mandatory. The reason is that at v5.x this variable is NOT empty anymore by default for non-mandatory questions: LS 5.x returns these values: While for LS 3.x we only have "1" if the question is mandartory and otherwise the value is empty. Because of this adjustment, the code above marks all questions as mandatory due to this check: At LS 5.x we have a new twig file for the asterisk code and the check is adjusted to this: BUT: If you update from 3.x to 5.x the old code is kept and all questions are marked mandatory. | ||||
| Steps To Reproduce | Steps to reproduceImport the attached template at an LS 3.x system. Expected resultOnly mark mandatory questions as mandatory Actual resultAll questions are marked as mandatory. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | Version 5.2.14+220214 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | Chrome | ||||
| Database type & version | MariaDB 10.1.48 | ||||
| Server OS (if known) | Ubuntu 18 | ||||
| Webserver software & version (if known) | Apache 2.0 | ||||
| PHP Version | PHP 7.4 | ||||
|
I don't see how that is a bug. |
|
|
@c_schmitz, this will affect every customer who updates from 3.x to 5.x and uses a theme we had created for them in the past. There are about 50-100 such customers. We can not really adjust this. Why have the variable values been changed from " " (empty) and "1" to "N", "Y" and "S"? Why did you not keep " " and "1" and add "2" for soft mandatory. That adjustment breaks backward compatibility of templates and causes quite some problems. |
|
|
3 to 4 : API update not really an issue. |
|
|
The probably some theme update system is missing. |
|
|
I think two things are needed:
|
|
We need a complete API update history system on https://manual.limesurvey.org |
|
|
Well. at this point in time this cannot be reverted, anymore, otherwise this would break all custom templates on 4. For the template update system feel free to open a feature request (if there is none). |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2022-02-28 13:02 | Mazi | New Issue | |
| 2022-02-28 13:02 | Mazi | File Added: extends_fruity_ls3.zip | |
| 2022-02-28 14:29 | c_schmitz | Note Added: 68438 | |
| 2022-02-28 14:29 | c_schmitz | Bug heat | 0 => 2 |
| 2022-02-28 14:39 | Mazi | Note Added: 68439 | |
| 2022-02-28 14:39 | Mazi | Bug heat | 2 => 4 |
| 2022-02-28 16:02 | DenisChenu | Note Added: 68452 | |
| 2022-02-28 16:02 | DenisChenu | Bug heat | 4 => 6 |
| 2022-02-28 17:26 | c_schmitz | Note Added: 68460 | |
| 2022-02-28 20:37 | Mazi | Note Added: 68463 | |
| 2022-03-01 08:26 | DenisChenu | Note Added: 68464 | |
| 2022-03-01 13:40 | c_schmitz | Assigned To | => c_schmitz |
| 2022-03-01 13:40 | c_schmitz | Status | new => closed |
| 2022-03-01 13:40 | c_schmitz | Resolution | open => not fixable |
| 2022-03-01 13:40 | c_schmitz | Note Added: 68471 |