Delete/Edit comments links do not work.

My setup: 4.6.2, multisite, default drupal links.

Problem: without URL rewriting, guestbook links are as follows (which is well known)

http://bea/drupal46/?q=guestbook/0

the current code will create invalid syntax for the edit and delete links, for example:

http://bea/drupal46/?q=/guestbook/0?guestbook_deleteentry=0

instead of (note the & instead of the ?)

http://bea/drupal46/?q=/guestbook/0&guestbook_deleteentry=0

the necessary fix appears quite obvious to me, a working version of the module is enclosed for all those needing a quick fix.

CommentFileSizeAuthor
#2 guestbook_2.module10.94 KBCows4all
guestbook_0.module11.26 KBbeate_r

Comments

Cows4all’s picture

Version: 6.x-2.x-dev »
Assigned: Unassigned » Cows4all

I'm running Guestbook on Drupal 4.6.3.

With the guestbook_0.module I get the following error:

-------------
user error: Unknown column 'g.email' in 'field list'
query: SELECT g.id, g.anonname, g.email, g.website, g.author, g.recipient,
g.comment, g.message, g.created, u.name, u.data, u.picture FROM guestbook g, users u
WHERE g.author = u.uid AND g.recipient = '0' ORDER BY g.id DESC LIMIT 0, 15 in /var/www/html/drupal/includes/database.mysql.inc on line 66.
-------------

Any Ideas? I'm no good in programming...

Cows4all’s picture

Status: Active » Needs review
StatusFileSize
new10.94 KB
hba’s picture

Version: » 4.6.x-1.x-dev
Assigned: Cows4all » hba
Status: Needs review » Fixed

Clean URL patch was just submitted to CVS (for 4.6.0).

Anonymous’s picture

Status: Fixed » Closed (fixed)