From a7be9470950e1c8c2d541424fa966fdf3b958f78 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 6 Jul 2015 17:59:09 +0200 Subject: fix #1209 --- inc/poche/Poche.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index baa08788..754d7c7e 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -266,6 +266,15 @@ class Poche } foreach($entry_ids as $id) { $msg = 'delete link #' . $id; + + // deleting tags and tags_entries + $tags = $this->store->retrieveTagsByEntry($id); + foreach ($tags as $tag) { + $this->store->removeTagForEntry($id, $tag['id']); + $this->store->cleanUnusedTag($tag['id']); + } + + // deleting pictures if ($this->store->deleteById($id, $this->user->getId())) { if (DOWNLOAD_PICTURES) { Picture::removeDirectory(ABS_PATH . $id); -- cgit v1.2.3