From c094eb82cbec718cd7b49b01255a525bdd990f4a Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Tue, 13 Mar 2012 21:53:05 +0100 Subject: [PATCH] Fixed issue #5891: "Add/edit answers for this question" icon for Array (Numbers) & Array (Texts) is "Row-Icon" instead of "Row-Column" Icon --- application/helpers/frontend_helper.php | 12 ++++++------ .../admin/survey/Question/questionbar_view.php | 4 ++-- images/subquestions2d.png | Bin 0 -> 1236 bytes images/subquestions2d_20.png | Bin 0 -> 719 bytes 4 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 images/subquestions2d.png create mode 100644 images/subquestions2d_20.png diff --git a/application/helpers/frontend_helper.php b/application/helpers/frontend_helper.php index 2986e77555a..672e96018b8 100644 --- a/application/helpers/frontend_helper.php +++ b/application/helpers/frontend_helper.php @@ -60,7 +60,7 @@ function loadanswers() //A match has been found. Let's load the values! //If this is from an email, build surveysession first $_SESSION['LEMtokenResume']=true; - + $row=$result->read(); foreach ($row as $column => $value) { @@ -297,7 +297,7 @@ function checkconfield($value) // we know the true fieldname $value (for instance SGQA for each checkboxes) // and we want to compare it to the values stored in $_SESSION['fieldarray'] which are simple fieldnames // ==> We first translate $value to the simple fieldname (let's call it the masterFieldName) from - // the $_SESSION['fieldnamesInfo'] translation table + // the $_SESSION['survey_X']['fieldnamesInfo'] translation table if (isset($_SESSION['survey_'.$surveyid]['fieldnamesInfo'][$value])) { $masterFieldName = $_SESSION['survey_'.$surveyid]['fieldnamesInfo'][$value]; @@ -1184,7 +1184,7 @@ function sendSubmitNotifications($surveyid) { $aReplacementVars['RELOADURL']=''; } - + if (!isset($_SESSION['survey_'.$surveyid]['srid'])) $srid = null; $aReplacementVars['ADMINNAME'] = $thissurvey['adminname']; @@ -2094,13 +2094,13 @@ function buildsurveysession($surveyid,$previewGroup=false) $startingValues[$field] = array ( 'type'=>$type, 'value'=>$value, - ); + ); } } } } $_SESSION['survey_'.$surveyid]['startingValues']=$startingValues; - + if (isset($_SESSION['survey_'.$surveyid]['fieldarray'])) $_SESSION['survey_'.$surveyid]['fieldarray']=array_values($_SESSION['survey_'.$surveyid]['fieldarray']); //Check if a passthru label and value have been included in the query url @@ -2778,7 +2778,7 @@ function display_first_page() { $_SESSION['LEMpostKey'] = mt_rand(); echo "\n"; echo "\n"; - + echo "\n\n"; echo templatereplace(file_get_contents("$thistpl/endpage.pstpl"),array(),$redata,'frontend_helper[2782]'); diff --git a/application/views/admin/survey/Question/questionbar_view.php b/application/views/admin/survey/Question/questionbar_view.php index dcde95c6c3f..c27a3ff9822 100644 --- a/application/views/admin/survey/Question/questionbar_view.php +++ b/application/views/admin/survey/Question/questionbar_view.php @@ -131,7 +131,7 @@ { ?> ' title='eTview("Edit subquestions for this question"); ?>'> - /subquestions.png' alt='eT("Edit subquestions for this question"); ?>' /> + /subquestions.pngsubquestions2d.png' alt='eT("Edit subquestions for this question"); ?>' /> eT("Warning"); ?>: eT("You need to add subquestions to this question"); ?> - /subquestions_20.png' title='eT("Edit subquestions for this question"); ?>' /> + /subquestions_20subquestions2d_20.png' title='eT("Edit subquestions for this question"); ?>' /> 26C_nx8m-2kKy#Rn81`Zz#4TWbacP0|?VG&u?g~8w zp*D1tAyS4=S-ATc9DMTWDyeXUsy}Wtp)&nqN$-bTe|46(-&-Q;V?t$!jNxgVvj6J? ze*F3e;)4+2OXu9@MLtzd@)5xL_D!zecnjTZkVr{SND`6PM?x?a1O!2Vnvx_^l1M=+ z1-(ATP9GSJ{eqF?9LRBAW#uF57gqWXrfK!IZ*ul~b6hsiK?ZWMX4;1N2LhJ_A8{_X(GSfJ-p2*6|K5_}0&lxdb_G zbQS=zFoAy)W`S8?X$X}hg59$c^f7+KtskLA#90`sXN8}u_ zvxL^twU)?OuJ{Rp6AwhsCAH^4?{OvXD>%$)#IH`#qGy#8y}0PX-9kApsU;X{L$9Ci z%0&~639RQwP-%{kgG^G4gW-j+pfbd`Qugpxybu=bD$5c56y-BSrt?gY8T>UxDK+?y zcM4w{lYfX1f?lszi2;b?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