View Issue Details

This bug affects 1 person(s).
 18
IDProjectCategoryView StatusLast Update
15037Bug reportsSurvey editingpublic2020-06-23 16:02
ReporterMazi Assigned To 
PriorityhighSeverityminor 
Status closedResolutionopen 
Product Version3.17.x 
Summary15037: Data protection statement texts not save if text for checkbox is too long
Description

If you enter a lengthy text for "data policy checkbox label" no texts at the data policy page gets saved.

Steps To Reproduce

Open the data policy setting of any survey and enter a long text like this:
This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text.

No text will be stored

Additional Information

Solution: Limit the HTML field length to the number of characters allowed at DB level.

TagsNo tags attached.
Bug heat18
Complete LimeSurvey version number (& build)3.17.7+190627
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL 5
Server OS (if known)Ubuntu 14 TLS
Webserver software & version (if known)Apache 2
PHP Version7.2

Relationships

has duplicate 16278 closed "Survey data policy checkbox label" is not accepting some texts in spanish 

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2019-07-08 14:38

updater   ~52789

@cdorin, should be a simple fix, maybe a nice one for one of the new developers.

DenisChenu

DenisChenu

2019-07-09 10:19

developer   ~52791

Last edited: 2020-05-17 15:36

In my opinion : need 2 solution

  1. Return clean error when survey->save return false
  2. Update HTML with maxlenght

user225042

2020-06-22 14:40

  ~58374

Tested by checking out to the branch, able to save the below text :

But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of

Which is 192 chracters

user225042

2020-06-22 16:24

  ~58375

Please refer the screenshot for more details

guest

guest

2020-06-23 16:02

viewer   ~58406

Fix committed to 3.x-LTS branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=30207

Related Changesets

LimeSurvey: 3.x-LTS 9c7d77b8

2020-06-23 16:02:04

gabrieljenik


Committer: GitHub Details Diff
Fixed issue 15037: Data protection statement texts not save if text for checkbox is too long (#1435) Affected Issues
15037
mod - application/controllers/admin/database.php Diff File
mod - application/views/admin/survey/editDataSecurityLocalSettings_view.php Diff File

Issue History

Date Modified Username Field Change
2019-07-08 14:37 Mazi New Issue
2019-07-08 14:38 Mazi Note Added: 52789
2019-07-09 10:19 DenisChenu Note Added: 52791
2019-07-11 11:44 cdorin Assigned To => p_teichmann
2019-07-11 11:44 cdorin Status new => assigned
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing
2020-01-17 15:35 p_teichmann Assigned To p_teichmann => cdorin
2020-05-15 15:23 ollehar Priority none => high
2020-05-15 15:24 ollehar Relationship added has duplicate 16278
2020-05-17 15:36 cdorin Assigned To cdorin =>
2020-05-17 15:36 cdorin Status assigned => confirmed
2020-05-17 15:36 cdorin Zoho Sprints => |Yes|
2020-05-17 15:36 swendrich Zoho Sprints ID => 14469000000091013
2020-06-22 14:40 user225042 Note Added: 58374
2020-06-22 14:41 user225042 Status confirmed => closed
2020-06-22 14:41 user225042 Zoho Sprints Yes => |Yes|
2020-06-22 16:24 user225042 Note Added: 58375
2020-06-22 16:24 user225042 File Added: 15037_DataPolicyTextsaved.png
2020-06-23 16:02 gabrieljenik Changeset attached => LimeSurvey 3.x-LTS 9c7d77b8
2020-06-23 16:02 guest Note Added: 58406