View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
15363Bug reportsSurvey takingpublic2026-11-04 23:06
Reporterollehar Assigned Toc_schmitz  
PrioritylowSeveritypartial_block 
Status closedResolutionduplicate 
Product Version3.18.0 
Summary15363: Can't submit question if ranking question uses both min/max and mandatory
Description

Title.

Steps To Reproduce
  1. Import survey
  2. Preview
  3. Can't submit
TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)latest master
I will donate to the project if issue is resolvedNo
Browser-
Database type & version-
Server OS (if known)-
Webserver software & version (if known)-
PHP Version-
Git branch / Pull Request URL

Relationships

duplicate of 17330 closedgabrieljenik Ranking Question Issue 
related to 20818 new Mandatory means different things per question type and can conflict with the minimum/maximum answers settings 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2019-11-21 08:44

developer   ~54743

Solution : when checking min/max : check mandatory ? Disable min/max if mandatory is set. https://github.com/LimeSurvey/LimeSurvey/blob/7e3cd94cfa73dbf03f903dc406142bb4f9848a15/application/helpers/qanda_helper.php#L1812-L1816

BUT : it's a user logic issue …

You can have more issue like this :)

For example : multiple mandatory with max_number at 0

DenisChenu

DenisChenu

2019-11-21 08:45

developer   ~54744

Last edited: 2021-02-04 21:23

Or min > max :)

ollehar

ollehar

2019-11-21 10:22

reporter   ~54746

Last edited: 2021-02-04 21:23

Sure, just a question of how idiot safe you want to make the interface.

DenisChenu

DenisChenu

2019-11-21 10:30

developer   ~54747

Last edited: 2021-02-04 21:23

About original issue : i'm 98% sure if we disable min/max with mandatory : there are forum post about «… i set a max on ranking but it don't work …»

c_schmitz

c_schmitz

2026-11-04 23:06

administrator   ~87195

The underlying problem is not limited to ranking: on several question types with more than one answer, "mandatory" can conflict with the minimum/maximum answers settings. A possible solution is described in 20818.

Issue History

Date Modified Username Field Change
2019-10-04 14:28 ollehar New Issue
2019-10-04 14:28 ollehar File Added: limesurvey_survey_894336_ranking_minmax_mandatory.lss
2019-11-20 17:26 cdorin Assigned To => cdorin
2019-11-20 17:26 cdorin Status new => assigned
2019-11-21 08:44 DenisChenu Note Added: 54743
2019-11-21 08:45 DenisChenu Note Added: 54744
2019-11-21 10:22 ollehar Note Added: 54746
2019-11-21 10:30 DenisChenu Note Added: 54747
2021-02-04 21:22 cdorin Assigned To cdorin =>
2021-02-04 21:22 cdorin Status assigned => confirmed
2021-02-04 21:22 cdorin Sync to Zoho Project => |Yes|
2021-02-04 21:23 LimeBot Zoho Projects ID => 85781000000571013
2021-03-10 22:15 ollehar Priority none => low
2021-03-10 22:15 ollehar Sync to Zoho Project Yes => |Yes|
2026-10-12 20:01 c_schmitz Assigned To => c_schmitz
2026-10-12 20:01 c_schmitz Status confirmed => acknowledged
2026-11-04 23:03 c_schmitz Relationship added duplicate of 17330
2026-11-04 23:03 c_schmitz Status acknowledged => closed
2026-11-04 23:03 c_schmitz Resolution open => duplicate
2026-11-04 23:06 c_schmitz Relationship added related to 20818
2026-11-04 23:06 c_schmitz Note Added: 87195
2026-11-04 23:06 c_schmitz Bug heat 4 => 6