View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
12450Bug reportsData Entry (non public)public2018-05-23 13:17
Reporteruser14106Assigned ToLouisGac 
PrioritynoneSeverityblock 
Status closedResolutionfixed 
Product Version2.64.x 
Fixed in Version3.0.x 
Summary12450: DataEntry not opening with array filter questions
Description

Data-entry blank screen with debug=>0

Additional Information

Debug=>2 outpu:

Recoverable error

Object of class Question could not be converted to string

/application/helpers/common_helper.php(3621)

3609 $mytext=str_replace('
', '<br />',$mytext);
3610 }
3611 return str_replace("\n", '<br />',$mytext);
3612 }
3613 else
3614 {
3615 return $mytext;
3616 }
3617 }
3618
3619
3620 function breakToNewline( $data ) {
3621 return preg_replace( '!<br.*>!iU', "\n", $data );
3622 }
3623
3624 function safeDie($text)
3625 {
3626 //Only allowed tag: <br />
3627 $textarray=explode('<br />',$text);
3628 $textarray=array_map('htmlspecialchars',$textarray);
3629 die(implode( '<br />',$textarray));
3630 }
3631
3632 function fixCKeditorText($str)
3633 {

Stack Trace
#0

application/helpers/common_helper.php(3621): preg_replace("!<br.*>!iU", " ", Question)

3616 }
3617 }
3618
3619
3620 function breakToNewline( $data ) {
3621 return preg_replace( '!<br.*>!iU', "\n", $data );
3622 }
3623
3624 function safeDie($text)
3625 {
3626 //Only allowed tag: <br />

#1

application/controllers/admin/dataentry.php(2482): breakToNewline(Question)

2477 $newquestiontext = Question::model()->findByAttributes(array('title' => $qidattributes['array_filter_exclude'], 'language' => $surveyprintlang, 'sid' => $surveyid));
2478 if(is_object($newquestiontext))
2479 {
2480 $newquestiontext->getAttribute('question');
2481 $output .= "\n <p class='extrahelp'>
2482 ".sprintf(gT("Only answer this question for the items you did not select in question %s ('%s')"),$qidattributes['array_filter_exclude'], breakToNewline($newquestiontext))."
2483 </p>\n";
2484 }
2485 }
2486 return $output;
2487 }

#2

application/controllers/admin/dataentry.php(2038): dataentry->_array_filter_help(array("array_filter" => "", "array_filter_exclude" => "Q1", "array_filter_style" => 0, "assessment_value" => "1", ...), "et", "245336")

2033 $qinfo = LimeExpressionManager::GetQuestionStatus($deqrow['qid']);
2034 $relevance = trim($qinfo['info']['relevance']);
2035 $explanation = trim($qinfo['relEqn']);
2036 $validation = trim($qinfo['prettyValidTip']);
2037 $qidattributes=getQuestionAttributeValues($deqrow['qid']);
2038 $array_filter_help = flattenText($this->_array_filter_help($qidattributes, $sDataEntryLanguage, $surveyid));
2039
2040 if (($relevance != '' && $relevance != '1') || ($validation != '') || ($array_filter_help != ''))
2041 {
2042 $showme = '<div class="alert alert-warning col-sm-8 col-sm-offset-2" role="alert">';
2043 if ($bgc == "even") {$bgc = "odd";} else {$bgc = "even";} //Do no alternate on explanation row

#3

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)Version 2.65.1
I will donate to the project if issue is resolvedNo
Browser-
Database type & version-
Server OS (if known)-
Webserver software & version (if known)-
PHP Version-

Users monitoring this issue

There are no users monitoring this issue.

Activities

user14106

2017-06-01 10:16

  ~43787

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

LouisGac

LouisGac

2017-06-01 10:43

developer   ~43788

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

LouisGac

LouisGac

2017-07-27 10:57

developer   ~44259

Fix committed to develop branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=23578

Related Changesets

LimeSurvey: master bbf4fe12

2017-06-01 10:43:01

user14106


Committer: LouisGac Details Diff
Fixed issue 12450: DataEntry not opening with array filter questions (#712) Affected Issues
12450
mod - application/controllers/admin/dataentry.php Diff File

LimeSurvey: develop 3f6332d6

2017-07-27 10:56:54

user14106


Committer: LouisGac Details Diff
Fixed issue 12450: DataEntry not opening with array filter (TYPO) (#787) Affected Issues
12450
mod - application/controllers/admin/dataentry.php Diff File

Issue History

Date Modified Username Field Change
2017-06-01 09:34 user14106 New Issue
2017-06-01 10:08 user14106 Assigned To => user14106
2017-06-01 10:08 user14106 Status new => assigned
2017-06-01 10:09 user14106 Summary DataEntry not opening => DataEntry not opening with array filter questions
2017-06-01 10:09 user14106 Additional Information Updated
2017-06-01 10:16 user14106 Note Added: 43787
2017-06-01 10:43 LouisGac Changeset attached => LimeSurvey master bbf4fe12
2017-06-01 10:43 LouisGac Note Added: 43788
2017-06-01 10:43 LouisGac Assigned To user14106 => LouisGac
2017-06-01 10:43 LouisGac Resolution open => fixed
2017-07-27 10:57 LouisGac Changeset attached => LimeSurvey develop 3f6332d6
2017-07-27 10:57 LouisGac Note Added: 44259
2018-05-23 13:17 LouisGac Status assigned => closed
2018-05-23 13:17 LouisGac Fixed in Version => 3.0.x