Skip to content

Commit

Permalink
Remove unnecessary code from import_from_xml
Browse files Browse the repository at this point in the history
  • Loading branch information
AnupamaSarjoshi committed Oct 27, 2023
1 parent 94b7785 commit 72bf981
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,13 @@ public function import_from_xml($data, $question, qformat_xml $format, $extra =
$columns = $format->getpath($data, ['#', 'columns', 0, '#', 'column'], false);
if ($columns) {
$this->import_columns($format, $question, $columns);
} else {
$question->columns = [];
}

$rows = $format->getpath($data, ['#', 'rows', 0, '#', 'row'], false);
if ($rows) {
$this->import_rows($format, $question, $rows);
} else {
$question->rows = [];
}

$format->import_combined_feedback($question, $data, true);
$format->import_hints($question, $data, true, true,
$format->get_format($question->questiontextformat));
Expand Down

0 comments on commit 72bf981

Please sign in to comment.