View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
18689Bug reportsErgonomypublic2023-04-12 17:16
ReporterDenisChenu Assigned To 
PrioritynoneSeveritypartial_block 
Status confirmedResolutionopen 
Product Version6.0.0-dev 
Summary18689: No input control on subquestion code can remove whole information
Description

When edition subquestion code : there are no HTML5 input control : it's easy to break adding é or , for example : saving : lost ALL subquestions

Steps To Reproduce

Steps to reproduce

Create an array question type Add subquestion and answer (valid)
Edit subquestion and add a bad character
Save and close : lost ALL
Edit answers and add a bad character
Save and close : lost ALL

Expected result

have a warning before save action

Actual result

Save an lost all

TagsNo tags attached.
Attached Files
Peek 17-03-2023 09-12.gif (579,429 bytes)
Peek 17-03-2023 09-11.gif (424,155 bytes)
Bug heat2
Complete LimeSurvey version number (& build)6.0.0-dev
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2023-03-17 09:18

developer   ~74135

A simple control with pattern like we have since years , why remove the good part ?

pattern="^([a-zA-Z0-9]*|OLDCODE)$" for subquestion
I think we need only pattern="^([a-zA-Z0-9]*)$" for andswers

We already validate duplicate : but it's only for duplicate …

DenisChenu

DenisChenu

2023-04-12 17:14

developer   ~74481

It can be great to NOT delete whole, but really update existing, delete deleted and add new.

Idea :

  1. Use the qid set in subquestions for updating
  2. Get the array of subquestions->qid set, delete all other with parent_qid
  3. Add the new one
DenisChenu

DenisChenu

2023-04-12 17:16

developer   ~74482

We NEED to set customValidity too for same code

Peek 12-04-2023 17-16.gif (309,424 bytes)

Issue History

Date Modified Username Field Change
2023-03-17 09:14 DenisChenu New Issue
2023-03-17 09:14 DenisChenu File Added: Peek 17-03-2023 09-12.gif
2023-03-17 09:14 DenisChenu File Added: Peek 17-03-2023 09-11.gif
2023-03-17 09:18 DenisChenu Note Added: 74135
2023-03-17 09:18 DenisChenu Bug heat 0 => 2
2023-04-12 16:50 p_teichmann Status new => confirmed
2023-04-12 17:08 DenisChenu Summary No input control on subquestion codecan remow whole information => No input control on subquestion code can remove whole information
2023-04-12 17:14 DenisChenu Note Added: 74481
2023-04-12 17:14 DenisChenu File Added: Capture d’écran du 2023-04-12 17-12-20.png
2023-04-12 17:14 DenisChenu File Added: Capture d’écran du 2023-04-12 17-14-03.png
2023-04-12 17:16 DenisChenu Note Added: 74482
2023-04-12 17:16 DenisChenu File Added: Peek 12-04-2023 17-16.gif