mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Now ignore hidden questions. Bug #4988
This commit is contained in:
parent
b59126298d
commit
a9b16aff8d
1 changed files with 15 additions and 8 deletions
|
@ -297,14 +297,21 @@ class qformat_default {
|
||||||
|
|
||||||
// iterate through questions
|
// iterate through questions
|
||||||
foreach($questions as $question) {
|
foreach($questions as $question) {
|
||||||
$count++;
|
// do not export hidden questions
|
||||||
$qtype = $question->qtype;
|
if (!empty($question->hidden)) {
|
||||||
// ignore random questiond
|
continue;
|
||||||
if ($qtype!=RANDOM) {
|
}
|
||||||
echo "<hr /><p><b>$count</b>. ".stripslashes($question->questiontext)."</p>";
|
|
||||||
$expout .= $this->writequestion( $question ) . "\n";
|
// do not export random questions
|
||||||
}
|
if ($question->qtype==RANDOM) {
|
||||||
}
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// export the question displaying message
|
||||||
|
$count++;
|
||||||
|
echo "<hr /><p><b>$count</b>. ".stripslashes($question->questiontext)."</p>";
|
||||||
|
$expout .= $this->writequestion( $question ) . "\n";
|
||||||
|
}
|
||||||
|
|
||||||
// final pre-process on exported data
|
// final pre-process on exported data
|
||||||
$expout = $this->presave_process( $expout );
|
$expout = $this->presave_process( $expout );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue