View Issue Details

IDProjectCategoryView StatusLast Update
16144Bug reportsSurvey editingpublic2020-10-22 18:31
ReporterDenisChenu Assigned To 
PrioritynormalSeverityminor 
Status confirmedResolutionopen 
Product Version4.1.18 
Summary16144: Question editor allow submit invalid data : loose extra data
Description

When try to submit invalid title (empty or exsiting) : the form stil submitted : the loose extra data (for example 100 sub-questions)

Steps To Reproduce

See screencast,
Compare with 3.X screencast

Additional Information

We need to use "Client-side form validation" , browser can do job for us : why try to recreate browser system ? They are more than us.

TagsNo tags attached.
Complete LimeSurvey version number (& build)4.1.18 github
I will donate to the project if issue is resolvedNo
Sync to Zoho Project
Browsernot relevant
Database & DB-Versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Activities

DenisChenu

DenisChenu

2020-04-16 19:00

developer  

3.X.gif (503,114 bytes)
4.X.gif (927,157 bytes)
DenisChenu

DenisChenu

2020-04-16 19:03

developer   ~57200

  1. Don't submit invalid form (again and again : why broke browser system ...)
  2. Add required to title
  3. Add pattern for start by alpha and contains alphanum only
  4. Use setCustomValidity() for ajax request (unique title)
ollehar

ollehar

2020-04-16 22:31

administrator   ~57208

Is this a solution for the corrupt database values you had?

DenisChenu

DenisChenu

2020-04-17 10:48

developer   ~57216

Is this a solution for the corrupt database values you had?

Not related at all ....

DenisChenu

DenisChenu

2020-10-22 18:31

developer   ~60376

$form[0].checkValidity(); before submit please …

Issue History

Date Modified Username Field Change
2020-04-16 19:00 DenisChenu New Issue
2020-04-16 19:00 DenisChenu File Added: 3.X.gif
2020-04-16 19:00 DenisChenu File Added: 4.X.gif
2020-04-16 19:03 DenisChenu Note Added: 57200
2020-04-16 22:31 ollehar Note Added: 57208
2020-04-17 10:48 DenisChenu Note Added: 57216
2020-04-17 19:05 cdorin Priority none => normal
2020-04-17 19:05 cdorin Status new => confirmed
2020-10-22 18:31 DenisChenu Note Added: 60376