Skip to content

Commit

Permalink
Re-importing tree creates duplicate links to media files
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed Dec 20, 2017
1 parent 858908f commit 23ed9d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Tree.php
Expand Up @@ -531,6 +531,7 @@ public function deleteGenealogyData($keep_media) {
} else {
Database::prepare("DELETE FROM `##link` WHERE l_file =?")->execute([$this->tree_id]);
Database::prepare("DELETE FROM `##media` WHERE m_file =?")->execute([$this->tree_id]);
Database::prepare("DELETE FROM `##media_file` WHERE m_file =?")->execute([$this->tree_id]);
}
}

Expand Down

0 comments on commit 23ed9d2

Please sign in to comment.