View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
08598 | Bug reports | Survey editing | public | 2014-01-25 16:48 | 2014-02-04 13:32 |
Reporter | pmonstad | Assigned To | tpartner | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.05+ | ||||
Fixed in Version | 2.05+ | ||||
Summary | 08598: incorrect alphabetically sort of surveys in list | ||||
Description | The survey list is not correctly sorted (alphabetically) when hitting the header in survey list. See screenshot: http://awesomescreenshot.com/0be2986k8a | ||||
Tags | No tags attached. | ||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | 140125 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Chrome | ||||
Database type & version | all | ||||
Server OS (if known) | all | ||||
Webserver software & version (if known) | all | ||||
PHP Version | all | ||||
Looks like the survey column still sorts after SID. |
|
It's actually sorting on SID and Survey combined... |
|
I don't see anything amiss with the JavaScript. The colModel (which would be the most likely offender) appears to be correct. Also I find that, when loaded, the table is not being sorted by SID as it should be. (although the sortname and sortorder options appear to be correct) Could it be a problem with the JSONized grid data? (dunno if it helps but this data is also not sorted) |
|
Maybe a bug in jqGrid? It should not matter how the grid data is sorted as the JS takes care of it? |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=13790 |
|
Well, dunno whether it's really a jqGrid bug but the sort function is including the anchor tags in those cells. Therefor it's effectively sorting by a combination of survey ID and name. I have added a custom sorting function to strip the <a> tag before sorting. This still does not solve the non sorting by ID on page load... |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=13791 |
|
It seems that the JSON data should be sorted - http://www.trirand.com/blog/?page_id=393/help/how-to-do-default-sorting-when-grid-first-time-load/ I have incorporated the fix from that post but it would be preferable to sort before delivery. Thoughts? |
|
It's my fault here .... Didn't understand why there are a comment before the link ... Then removing it. Still the main issue is getsurveyJson need to return text only and not HTML. Started a fix, but no time to accomplish. The alternative here is to remove the link, and do it in JavaScript only. |
|
Okay, now I get what changed to break the sorting by "Survey" :) Should we put the comment back in or just leave it with the new sorttype function? |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=13792 |
|
Denis, if we want to remove the link(s) from getSurveys_json(), we can use a custom jqGrid formatter - http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter Something like this: My concerns with that are: 1) How to pass translations in the link(s) - for title, etc |
|
Hi tpartner, i start to work on this, but need more than just this column here. For this one : We just need to do a link to survey. Then i think we can "just" do a link with sid and text. Something like that: function updateCells(){ }); But in this function we need:
For survey name and owner : maybe we can use something like: The quicly is to add again the <!-- surveyname --> Just remind to purify surveyname |
|
Okay, over to you - I think you may be over-complicating it. |
|
It's great now ? I think of a devloppment bug (for 2.1/2.2/2.3), not a 'bug report' bug. Sorry, You made it now ? |
|
It is now working as expected:
|
|
Move to jqgrid/autoencode;true is not this bug ;) Thanks Tony |
|
LimeSurvey 2-05+ Build 140131 released |
|
The sort of survey name is still a little odd as it differs between upper and lower case letters. Uppercae names are sorted before lowercase, making the list show like e.g. this: My survey The sorting routine should be case insensitive. Make no sense elsewhere. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=13810 |
|
That seems to be a jqGrid bug - the "ignoreCase" option is set to true. However, I have put in a workaround. |
|
Version 2.05+ Build 140204 released |
|
LimeSurvey: master 20e1951a 2014-01-27 17:24 Details Diff |
Fixed issue 08598: incorrect alphabetically sort of surveys in list Dev Added custom sorttype function for the "Survey" column Dev This function strips the anchor tag before sorting |
Affected Issues 08598 |
|
mod - application/views/admin/survey/listSurveys_view.php | Diff File | ||
LimeSurvey: master e41668d4 2014-01-27 17:46 Details Diff |
Fixed issue 08598: incorrect alphabetically sort of surveys in list Dev Reload the grid to sort by ID |
Affected Issues 08598 |
|
mod - scripts/admin/listsurvey.js | Diff File | ||
LimeSurvey: master 6be6b5bb 2014-01-27 18:33 Details Diff |
Fixed issue 08598: incorrect alphabetically sort of surveys in list Dev Prevent the "flash" when the grid is reloaded after correctly sorting |
Affected Issues 08598 |
|
mod - scripts/admin/listsurvey.js | Diff File | ||
LimeSurvey: master 6018bde1 2014-01-31 19:53 Details Diff |
Fixed issue 08598: incorrect alphabetically sort of surveys in list Dev Workaround for case-insesitive sorting of "Survey" column |
Affected Issues 08598 |
|
mod - application/views/admin/survey/listSurveys_view.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-01-25 16:48 | pmonstad | New Issue | |
2014-01-25 18:49 | c_schmitz | Assigned To | => tpartner |
2014-01-25 18:49 | c_schmitz | Status | new => assigned |
2014-01-25 18:49 | c_schmitz | Note Added: 28177 | |
2014-01-25 19:43 | tpartner | Note Added: 28185 | |
2014-01-26 14:31 | tpartner | Note Added: 28197 | |
2014-01-26 14:31 | tpartner | Assigned To | tpartner => |
2014-01-26 14:31 | tpartner | Assigned To | => c_schmitz |
2014-01-26 15:06 | c_schmitz | Note Added: 28200 | |
2014-01-27 17:24 | tpartner | Changeset attached | => LimeSurvey master 20e1951a |
2014-01-27 17:24 | tpartner | Note Added: 28229 | |
2014-01-27 17:24 | tpartner | Assigned To | c_schmitz => tpartner |
2014-01-27 17:24 | tpartner | Resolution | open => fixed |
2014-01-27 17:25 | tpartner | Note Added: 28230 | |
2014-01-27 17:46 | tpartner | Changeset attached | => LimeSurvey master e41668d4 |
2014-01-27 17:46 | tpartner | Note Added: 28231 | |
2014-01-27 17:47 | tpartner | Note Added: 28232 | |
2014-01-27 17:53 | DenisChenu | Note Added: 28233 | |
2014-01-27 18:12 | tpartner | Note Added: 28234 | |
2014-01-27 18:33 | tpartner | Changeset attached | => LimeSurvey master 6be6b5bb |
2014-01-27 18:33 | tpartner | Note Added: 28236 | |
2014-01-27 20:47 | tpartner | Note Added: 28238 | |
2014-01-28 08:51 | DenisChenu | Note Added: 28242 | |
2014-01-28 11:41 | tpartner | Note Added: 28251 | |
2014-01-28 11:41 | tpartner | Assigned To | tpartner => |
2014-01-28 11:41 | tpartner | Assigned To | => DenisChenu |
2014-01-28 11:53 | DenisChenu | Note Added: 28252 | |
2014-01-28 12:00 | tpartner | Note Added: 28253 | |
2014-01-28 12:56 | DenisChenu | Note Added: 28255 | |
2014-01-28 12:56 | DenisChenu | Status | assigned => resolved |
2014-01-28 12:56 | DenisChenu | Fixed in Version | => 2.05+ |
2014-01-28 12:56 | DenisChenu | Assigned To | DenisChenu => tpartner |
2014-01-31 17:32 | c_schmitz | Note Added: 28345 | |
2014-01-31 17:32 | c_schmitz | Status | resolved => closed |
2014-01-31 17:49 | pmonstad | Note Added: 28360 | |
2014-01-31 17:49 | pmonstad | Status | closed => feedback |
2014-01-31 17:49 | pmonstad | Resolution | fixed => reopened |
2014-01-31 19:53 | tpartner | Changeset attached | => LimeSurvey master 6018bde1 |
2014-01-31 19:53 | tpartner | Note Added: 28361 | |
2014-01-31 19:54 | tpartner | Note Added: 28362 | |
2014-01-31 19:54 | tpartner | Status | feedback => resolved |
2014-01-31 19:54 | tpartner | Resolution | reopened => fixed |
2014-02-04 13:32 | c_schmitz | Note Added: 28515 | |
2014-02-04 13:32 | c_schmitz | Status | resolved => closed |
2019-11-01 17:25 | c_schmitz | Category | Survey design => Survey editing |