From: Andrew Dolgov Date: Mon, 11 Jan 2010 11:51:05 +0000 (+0300) Subject: remove_feed: properly save orig_feed_id when moving articles to archive X-Git-Tag: 1.4.0~97 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=74d22f0c3068727149f3b264328970be6fe50056;p=tt-rss.git remove_feed: properly save orig_feed_id when moving articles to archive --- diff --git a/functions.php b/functions.php index 7943adef..ec55467b 100644 --- a/functions.php +++ b/functions.php @@ -6358,8 +6358,8 @@ WHERE id = '$id'"); } - db_query($link, "UPDATE ttrss_user_entries SET feed_id = NULL - WHERE feed_id = '$id' AND + db_query($link, "UPDATE ttrss_user_entries SET feed_id = NULL, + orig_feed_id = '$id' WHERE feed_id = '$id' AND marked = true AND owner_uid = $owner_uid"); /* remove the feed */