[geeklog-hg] geeklog: Delete old Topic Assignments if story id changes (since...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon May 14 10:19:08 EDT 2012
changeset 8698:fe119ddd8791
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/fe119ddd8791
user: Tom <websitemaster at cogeco.net>
date: Mon May 14 10:11:54 2012 -0400
description:
Delete old Topic Assignments if story id changes (since new ones get created)
diffstat:
system/classes/story.class.php | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 57a4c275ff26 -r fe119ddd8791 system/classes/story.class.php
--- a/system/classes/story.class.php Sun May 13 09:27:08 2012 +0200
+++ b/system/classes/story.class.php Mon May 14 10:11:54 2012 -0400
@@ -839,6 +839,9 @@
if ($oldArticleExists) {
/* Clean up the old story */
DB_delete($_TABLES['stories'], 'sid', $checksid);
+
+ // Delete Topic Assignments for this old article id since we just created new ones
+ TOPIC_deleteTopicAssignments('article', $checksid);
}
if ($this->type == 'submission') {
More information about the geeklog-cvs
mailing list