Skip to content

Commit

Permalink
bugfix #67 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschrenk committed Jul 11, 2024
1 parent 350c31b commit 5cdea3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/package.php
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@ public function store_package($data) {
$this->set($id, 'id');
foreach ($subtables as $subtable => $channel) {
if (!$DB->record_exists("block_edupublisher_md_{$subtable}", [ 'package' => $data->package ])) {
$this->set($data->id, 'package', $channel);
$id = $DB->insert_record("block_edupublisher_md_{$subtable}", $this->get_channel($channel, true));
$this->set($id, 'id', $channel);
}
Expand Down

0 comments on commit 5cdea3c

Please sign in to comment.