1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-04-03 20:25:32 +02:00

Merge pull request #224 from HuidaeCho/renameTag-sql-bugfix

renameTag SQL bugfix
This commit is contained in:
blizzz 2016-04-16 22:42:09 +02:00
commit f5f2d665cd

View File

@ -303,11 +303,12 @@ class Bookmarks {
AND exists( SELECT `id` FROM `*PREFIX*bookmarks` WHERE `user_id` = ?
AND `tgs`.`bookmark_id` = `id`)
AND exists( SELECT `t`.`tag` FROM `*PREFIX*bookmarks_tags` `t` where `t`.`tag` = ?
AND `tgs`.`bookmark_id` = `t`.`bookmark_id`");
AND `tgs`.`bookmark_id` = `t`.`bookmark_id`)");
$params = array(
$new,
$user_id,
$new
);
$query->execute($params);
@ -325,8 +326,7 @@ class Bookmarks {
$params = array(
$new,
$old,
$user_id,
$old,
$user_id
);
$query->execute($params);