View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
09947Bug reportsCentral participant databasepublic2016-03-16 09:18
Reporterttenbergen Assigned Toollehar  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.50.x 
Fixed in Version2.50.x 
Summary09947: form code being revealed in participant attribute value field
Description

Was clicking around in the participant edit fields to find a pattern for a different problem. For one of them the following showed up in the attribute value field (in the text box where I might otherwise enter a value, screen shot uploaded):

<select class="editable" size="1" name="attvalue" id="cd726c73-9d12-4077-8a53-216c2cde57a7_4_attvalue" role="select"><option value="" role="option"></option><option value="Y" role="option">Y</option><option value="JC RIP" role="option">JC RIP</option><option value="JC CB" role="option">JC CB</option></select>

I was clicking the edit and save buttons for the same field intermittently to make this happen. For the fields where this goes wrong it seems to be consistent, but it doesn't go wrong for all fields.

No idea if related, but it leaves dropdown boxes visible for fields I am no longer in as well (as visible on screen shot).

The reason I was clicking around like this is because I also have a problem with dropdown fields sometimes listing as textboxes or vice versa - have not figured out anything reproducible there. The Cardiology field should be a text box so it showing as dropdown is an example of this.

I came across that when I was trying to troubleshoot why dropdown edits don't stick in our data most of the time. Even when done on admin account. Would share with admin account just for good measure but it is not in the list of options when sharing.

Steps To Reproduce

In our database,

click plus before participant named !test
click edit pencil before "cardiology" attribute
click save
click edit again
form code shows up

Additional Information

Cardiology is a text box type field, but this doesn't consistenly happen for other text box type fields.

We have 18 attributes which causes problems editing them anyway, I just raised a different issue for that (09946).

TagsNo tags attached.
Attached Files
form code reveal.png (106,072 bytes)
Bug heat6
Complete LimeSurvey version number (& build)Version 2.06+ Build 150930
I will donate to the project if issue is resolvedNo
BrowserFirefox
Database type & versionMySQL 5.6.15-cll-lve
Server OS (if known)Linux
Webserver software & version (if known)Apache 2.4.12
PHP VersionPHP version: 5.5.25

Users monitoring this issue

There are no users monitoring this issue.

Activities

ttenbergen

ttenbergen

2015-10-15 04:14

reporter   ~33345

Not sure if this is related or not, but I just noticed that the fields that show as drop-downs are not consistent with the fields that are declared so. In inconsistent dropdown listed vs declared.png Cardiology and Gastroenterology are both declared as text boxes, yet list with dropdowns. Endo* is also declared text but doesn't list as dropdown.

ttenbergen

ttenbergen

2015-10-15 18:13

reporter   ~33356

If I understand correctly then there would be one entry in ls_participant_attribute for every possible combination between ls_participants and ls_attribute_names. Is that right? If so, we are missing a bunch, ie the following query is not empty. Am I right that it should be empty? Could that be related to the glitches?

select all_possible., pa. from
(select participant_id as part_pid, ls_participant_attribute_names.defaultname as attr_name
from
ls_participants, ls_participant_attribute_names) as all_possible

left join ls_participant_attribute as pa
on all_possible.part_pid = pa.participant_id

where pa.participant_id is null

ollehar

ollehar

2016-01-22 15:05

administrator   ~34361

Please try in latest 2.5.

ttenbergen

ttenbergen

2016-01-22 22:40

reporter   ~34368

Hi Olle,
Reluctant to install an "unstable" release on a production system... And this is not even something I could try on a test install. How close is 2.5 to becoming "stable"?

ollehar

ollehar

2016-01-25 14:52

administrator   ~34379

Hi ttenbergen,

We have ambitions to make 2.5 stable this week. But as I wrote in the other bug, check-out preview.limesurvey.org.

ttenbergen

ttenbergen

2016-01-25 17:34

reporter   ~34387

Hi Olle... Just tried http://preview.limesurvey.org/, got "PHP warning" with
"simplexml_load_file(): I/O warning : failed to load external entity "/var/www/clients/client1/web58/web/upload/templates//config.xml" " and more...

ttenbergen

ttenbergen

2016-01-25 17:46

reporter   ~34389

Hi Olle, so the other link you sent included the "admin" part of the URL, and that worked. I just tried to add an attribute and am getting an "error Status: 'Internal Server Error'. Error code 500" error.

ollehar

ollehar

2016-02-02 12:13

administrator   ~34471

Can confirm.

ollehar

ollehar

2016-02-02 17:10

administrator   ~34479

The problem seem to be that jqgrid doesn't really "get" when you click on an attribute with another type than the last one. One has to cancel and then click edit again. I assume this is a bug with jqgrid, so I'm not sure we will fix it. The latest version of jqgrid is not GPL.

ollehar

ollehar

2016-03-15 11:28

administrator   ~36499

Should now be fixed. Please update to latest version and confirm.

c_schmitz

c_schmitz

2016-03-16 09:18

administrator   ~36528

Version 2.50+ Build 160316 released

Issue History

Date Modified Username Field Change
2015-10-05 23:20 ttenbergen New Issue
2015-10-05 23:20 ttenbergen File Added: form code reveal.png
2015-10-15 04:12 ttenbergen File Added: inconsistent dropdown listed vs declared.png
2015-10-15 04:14 ttenbergen Note Added: 33345
2015-10-15 18:13 ttenbergen Note Added: 33356
2016-01-22 15:05 ollehar Note Added: 34361
2016-01-22 15:05 ollehar Assigned To => ollehar
2016-01-22 15:05 ollehar Status new => acknowledged
2016-01-22 15:12 ollehar Status acknowledged => assigned
2016-01-22 22:40 ttenbergen Note Added: 34368
2016-01-25 14:52 ollehar Note Added: 34379
2016-01-25 17:34 ttenbergen Note Added: 34387
2016-01-25 17:45 ttenbergen File Added: Limesurvey 25 error adding attributes.png
2016-01-25 17:46 ttenbergen Note Added: 34389
2016-02-02 12:13 ollehar Note Added: 34471
2016-02-02 12:13 ollehar Status assigned => acknowledged
2016-02-02 17:10 ollehar Note Added: 34479
2016-02-09 12:12 ollehar Assigned To ollehar =>
2016-03-15 11:22 LouisGac Product Version => 2.5
2016-03-15 11:28 ollehar Note Added: 36499
2016-03-15 11:28 ollehar Status acknowledged => resolved
2016-03-15 11:28 ollehar Fixed in Version => 2.5
2016-03-15 11:28 ollehar Resolution open => fixed
2016-03-15 11:28 ollehar Assigned To => ollehar
2016-03-16 09:18 c_schmitz Note Added: 36528
2016-03-16 09:18 c_schmitz Status resolved => closed