[geeklog-cvs] geeklog: Update polls comments when changing a poll's ID so the ...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Jun 6 08:47:59 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/3f282a65afc2
changeset: 7082:3f282a65afc2
user: Dirk Haun <dirk at haun-online.de>
date: Sat Jun 06 14:34:21 2009 +0200
description:
Update polls comments when changing a poll's ID so the comments don't get orphaned (part of bug #0000901)
diffstat:
public_html/admin/plugins/polls/index.php | 2 ++
public_html/docs/history | 5 +++++
2 files changed, 7 insertions(+), 0 deletions(-)
diffs (27 lines):
diff -r b72b3a2110bf -r 3f282a65afc2 public_html/admin/plugins/polls/index.php
--- a/public_html/admin/plugins/polls/index.php Sat Jun 06 14:20:47 2009 +0200
+++ b/public_html/admin/plugins/polls/index.php Sat Jun 06 14:34:21 2009 +0200
@@ -306,6 +306,8 @@
if (empty($old_pid) || ($old_pid == $pid)) {
PLG_itemSaved($pid, 'polls');
} else {
+ DB_change($_TABLES['comments'], 'sid', addslashes($pid),
+ array('sid', 'type'), array(addslashes($old_pid), 'polls'));
PLG_itemSaved($pid, 'polls', $old_pid);
}
diff -r b72b3a2110bf -r 3f282a65afc2 public_html/docs/history
--- a/public_html/docs/history Sat Jun 06 14:20:47 2009 +0200
+++ b/public_html/docs/history Sat Jun 06 14:34:21 2009 +0200
@@ -14,6 +14,11 @@
- Removed old plugin API function plugin_commentsupport from the Calendar,
Polls, and Static Pages plugins.
+Polls plugin
+------------
+- Update polls comments when changing a poll's ID so the comments don't get
+ orphaned (part of bug #0000901) [Dirk]
+
Static Pages plugin
-------------------
- When deleting a static page, also delete its comments (bug #0000901) [Dirk]
More information about the geeklog-cvs
mailing list