Help - Search - Members - Calendar
Full Version: First question not showing in edit questions
Big Red Spark Forums > Big Red Spark.com Forums > Unit Command Climate Assessment and Survey System (UCCASS)
Rednes
Hi all,

The first question is not showing in the edit questions list.

Does anyone know how to solve this?

I guess the solution is somewhere in editsurvey.class.php.

But I dont wan't to wreck anything so I prefer to ask before wrecking.

my versions:
UCCASS: 1.8.1
PHP: 5.2.6
MySQL: 5.0.27


Kind regards,

Red.
Rednes
I haven't changed edit_survey_questions.tpl

And the section that holds the $data.qid array doesnt hold the first question.

{$data.qid|print_r} only gives two id's. Where it should give 3 id's.

edit_survey_questions.tpl line: 20-44
CODE


{section name="p" loop=$data.qid}
            <form method="GET" action="{$conf.html}/edit_survey.php">
            <input type="hidden" name="mode" value="{$data.mode_edit_question}">
            <input type="hidden" name="sid" value="{$data.sid}">
            <tr bgcolor="{cycle values="#F9F9F9,#FFFFFF"}">
              <td style="text-align:center;">
                {$data.qnum[p]}
                <input type="hidden" name="qid" value="{$data.qid[p]}">
              </td>
              <td style="text-align:center">{$data.qid[p]}</td>
              <td>
                <div class="indented_cell">
                  {$data.question[p]}
                </div>

                {section name="show_edep" loop=1 show=$data.show_edep[p]}
                  <br />
                  <div class="indented_cell"><strong>Dependencies:</strong></div>
                  {section name="dep" loop=$data.edep_option[p] show=$data.edep_option[p]}
                    <div style="margin-left:5%;">
                      • {$data.edep_option[p][dep]} if question {$data.edep_qnum[p][dep]}
                      is: {$data.edep_value[p][dep]}
                    </div>
                  {/section}
                {/section}



But when I press move up, the question that wasnt visible is shown again, but now the question that moved up is gone. So the first question isnt visible.



Rednes
I suppose I need to edit something, somewhere in function _loadQuestions at line 840 in editsurvey.class.php
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.