Skip to content

Commit

Permalink
adds missing dataset record xml tag
Browse files Browse the repository at this point in the history
  • Loading branch information
smeyer-ilias committed Mar 13, 2024
1 parent f0abdf4 commit b7d61fb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Services/DataSet/classes/class.ilDataSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,7 @@ public function addRecordsXml(
$this->getDSPrefixString() . "Rec",
array("Entity" => $this->getXMLEntityName($a_entity, $a_schema_version))
);

// entity tag
$a_writer->xmlStartTag($this->getXMLEntityTag($a_entity, $a_schema_version));

$a_writer->xmlStartTag($this->getXMLEntityTag($a_entity, ''));
$rec = $this->getXmlRecord($a_entity, $a_schema_version, $d);
foreach ($rec as $f => $c) {
if ((($types[$f] ?? "") == "directory") && $this->absolute_export_dir !== "" && $this->relative_export_dir !== "") {
Expand All @@ -296,8 +293,7 @@ public function addRecordsXml(
$a_writer->xmlElement($f, array(), $c);
}

$a_writer->xmlEndTag($this->getXMLEntityTag($a_entity, $a_schema_version));

$a_writer->xmlEndTag($this->getXMLEntityTag($a_entity, ''));
$a_writer->xmlEndTag($this->getDSPrefixString() . "Rec");

$this->afterXmlRecordWriting($a_entity, $a_schema_version, $d);
Expand Down

0 comments on commit b7d61fb

Please sign in to comment.