[interchange-cvs] interchange - thunder modified dist/standard/pages/forum/submit.html
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Wed Apr 23 09:44:03 UTC 2008
User: thunder
Date: 2008-04-23 09:44:03 GMT
Modified: dist/standard/pages/forum submit.html
Log:
patch from march 2006 solving an issue where a new forum post is overwritten by the next post
Revision Changes Path
1.7 interchange/dist/standard/pages/forum/submit.html
rev 1.7, prev_rev 1.6
Index: submit.html
===================================================================
RCS file: /var/cvs/interchange/dist/standard/pages/forum/submit.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- submit.html 27 Mar 2006 18:49:54 -0000 1.6
+++ submit.html 23 Apr 2008 09:44:03 -0000 1.7
@@ -145,7 +145,8 @@
my $code;
if($CGI->{parent}) {
- my $existing = $db->query("select * from forum where parent = '$CGI->{parent}'");
+ my $existing = $db->query("select * from forum where parent = '$CGI->{parent}' or (parent = '0' and code = '$CGI->{parent}')");
+
if($existing and ! @$existing) {
$v{artid} = $CGI->{parent};
$code = $CGI->{parent};
More information about the interchange-cvs
mailing list