View Issue Details

This bug affects 2 person(s).
 14
IDProjectCategoryView StatusLast Update
20037Bug reportsSurvey editingpublic2025-07-22 15:59
ReporterMazi Assigned Totibor.pacalat  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version6.6.x 
Summary20037: Equation screen for subquestions - Wrong toggle, open/close reacts on every field
Description

When adding an equation at the equation field for a sub question e.g. at a multi choice question, clicking into the field enlarges the field size which is great. But if you then switch to the next equation field and click into it, the field size gets reduced, the toggle event gets applies to all fields. This is making it pretty difficult to add multiple equations because the fields always open and close.

Steps To Reproduce

Steps to reproduce

Create a multi choice question with some items.
Add an equation to the first element.
Click into the equation field of the next element

Expected result

Equation fields should still be enlarged.

Actual result

Clicking into the next field shriks all equation fields.

TagsNo tags attached.
Bug heat14
Complete LimeSurvey version number (& build)6.12
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 5
Server OS (if known)
Webserver software & version (if known)
PHP Version8.3

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2025-06-13 11:30

updater   ~82879

@galads, can you reproduce this one?

tibor.pacalat

tibor.pacalat

2025-07-16 13:52

administrator   ~83079

@Mazi I don't get it (equation for subquestions), can you please provide screenshot where do you set this? And screenshot of the bug please?

Mazi

Mazi

2025-07-16 14:30

updater   ~83080

@tibor.pacalat, please see attached screenshots from 1 to 4 showing the issue.
1 = Loading question
2 = Clicking into equation field which enlarges the field
3 = Equation entered
4 = Further editing: If you click into the equation field again e.g. to fix a typo, the field shrinks again making it difficult to edit anything.

1.png (5,926 bytes)   
1.png (5,926 bytes)   
2.png (6,062 bytes)   
2.png (6,062 bytes)   
3.png (7,704 bytes)   
3.png (7,704 bytes)   
Mazi

Mazi

2025-07-16 14:32

updater   ~83081

4.png (6,056 bytes)   
4.png (6,056 bytes)   
gabrieljenik

gabrieljenik

2025-07-19 00:06

manager   ~83110

https://github.com/LimeSurvey/LimeSurvey/pull/4368

tibor.pacalat

tibor.pacalat

2025-07-21 17:47

administrator   ~83114

@gabrielJenik After I save the question, I can not trigger the expanding again.

To reproduce:

  1. Switch to your branch with the fix
  2. Enter relevance equation in MC subquestion and save the question
  3. Click into the field again - doesn't expand any more
guest

guest

2025-07-22 15:59

viewer   ~83127

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=39006

Related Changesets

LimeSurvey: master 9d7b21ae

2025-07-22 15:59

Gabriel Jenik

Committer: GitHub


Details Diff
Fixed issue 20037: Equation screen for subquestions - Wrong toggle, open/close reacts on every field (04368)

Co-authored-by: lapiudevgit <devgit@lapiu.biz>
Affected Issues
20037
mod - application/views/questionAdministration/subquestionRow.twig Diff File
mod - assets/scripts/admin/questionEditor.js Diff File

Issue History

Date Modified Username Field Change
2025-03-29 16:29 Mazi New Issue
2025-06-13 11:30 Mazi Note Added: 82879
2025-06-13 11:30 Mazi Bug heat 0 => 2
2025-07-16 13:52 tibor.pacalat Note Added: 83079
2025-07-16 13:52 tibor.pacalat Bug heat 2 => 4
2025-07-16 14:30 Mazi Note Added: 83080
2025-07-16 14:30 Mazi File Added: 4.png
2025-07-16 14:30 Mazi File Added: 1.png
2025-07-16 14:30 Mazi File Added: 2.png
2025-07-16 14:30 Mazi File Added: 3.png
2025-07-16 14:30 Mazi Assigned To => tibor.pacalat
2025-07-16 14:30 Mazi Status new => assigned
2025-07-16 14:31 Mazi File Deleted: 4.png
2025-07-16 14:32 Mazi Note Added: 83081
2025-07-16 14:32 Mazi File Added: 4.png
2025-07-16 15:48 tibor.pacalat Assigned To tibor.pacalat => gabrieljenik
2025-07-19 00:06 gabrieljenik Assigned To gabrieljenik => DenisChenu
2025-07-19 00:06 gabrieljenik Status assigned => ready for code review
2025-07-19 00:06 gabrieljenik Note Added: 83110
2025-07-19 00:06 gabrieljenik Bug heat 4 => 6
2025-07-21 08:58 guest Bug heat 6 => 12
2025-07-21 09:00 DenisChenu Assigned To DenisChenu => tibor.pacalat
2025-07-21 09:00 DenisChenu Status ready for code review => ready for testing
2025-07-21 17:47 tibor.pacalat Note Added: 83114
2025-07-22 15:59 Changeset attached => LimeSurvey master 9d7b21ae
2025-07-22 15:59 guest Note Added: 83127
2025-07-22 15:59 guest Bug heat 12 => 14
2025-07-22 15:59 tibor.pacalat Status ready for testing => resolved
2025-07-22 15:59 tibor.pacalat Resolution open => fixed