View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
19943Bug reportsOtherpublic2025-01-29 10:21
ReportersdsAdm1n Assigned Totibor.pacalat  
PrioritynoneSeverityminor 
Status closedResolutionno change required 
Product Version6.6.x 
Summary19943: Can’t save the java script code in survey
Description

Hi,
While trying to add java script in the question or group source, it’s not saving and script disappears. (Please check attached file).
• While exporting a question group with a certain java script from the old version (5.x) , and importing it into the new version (6.x), the script wasn’t imported. (Please check attached file).
your support will be highly appreciated.

Steps To Reproduce

Steps to reproduce

(Replace this text with detailed step-by-step instructions on how to reproduce the issue)

Expected result

(Write here what you expected to happen)

Actual result

(Write here what happened instead)

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)LimeSurvey Community Edition Version 6.8.1+241120
I will donate to the project if issue is resolvedNo
Browserchrome
Database type & versionSQL server 2016
Server OS (if known)
Webserver software & version (if known)
PHP Version8.0.30

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2025-01-27 08:24

developer   ~81900

Did you test with the 1st user ? Super Admin ?

tibor.pacalat

tibor.pacalat

2025-01-27 11:32

administrator   ~81907

If I am a superadmin, I can add script to the question and also import question with the script successfully.

If I am an admin user with, let's say, survey permissions then I can not add script and also when I import a question with javascript in it, it is imported without javascript. That is correct behaviour.

sdsAdm1n

sdsAdm1n

2025-01-28 06:25

reporter   ~81915

Many thanks. It is working fine. but why the user should be Super Admin to do the JS copy.

tibor.pacalat

tibor.pacalat

2025-01-29 10:21

administrator   ~81919

Because of security. If superadmin wants to give this permission to lower admins they can.

Issue History

Date Modified Username Field Change
2025-01-27 08:19 sdsAdm1n New Issue
2025-01-27 08:19 sdsAdm1n File Added: New LimeSurvey Testing Report (003).docx
2025-01-27 08:24 DenisChenu Note Added: 81900
2025-01-27 08:24 DenisChenu Bug heat 0 => 2
2025-01-27 11:32 tibor.pacalat Note Added: 81907
2025-01-27 11:32 tibor.pacalat Bug heat 2 => 4
2025-01-27 11:32 tibor.pacalat Assigned To => tibor.pacalat
2025-01-27 11:32 tibor.pacalat Status new => feedback
2025-01-28 06:25 sdsAdm1n Note Added: 81915
2025-01-28 06:25 sdsAdm1n Bug heat 4 => 6
2025-01-28 06:25 sdsAdm1n Status feedback => assigned
2025-01-29 10:21 tibor.pacalat Note Added: 81919
2025-01-29 10:21 tibor.pacalat Status assigned => closed
2025-01-29 10:21 tibor.pacalat Resolution open => no change required