Closed (fixed)
Project:
Guestbook
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2008 at 20:36 UTC
Updated:
14 Jul 2012 at 19:18 UTC
Drupal 6.1, Guestbook from CVS.
With just site guestbook enabled can't delete or edit entries. The links for that seem wrong: guestbook/%252Fdelete/0. (Entering guestbook/delete/0 works.)
This happens because $uid is null everywhere; guestbook_menu passes array(0) as page arguments and guestbook_page takes $account and passes $account->uid forward.
Attached patch just checks for null uid in theme_guestbook_entry, and corrects the links in that case.
Should the uid be allowed to be null at all?
| Comment | File | Size | Author |
|---|---|---|---|
| delete_and_comment.diff | 1.3 KB | wrwrwr |
Comments
Comment #1
sunGuestbook id 0 is the site guestbook. All ids greater than 0 refer to user guestbooks. Could you please double-check if you still encounter this issue with the current RC1?
Comment #2
sunWithout further information I must guess this issue has already been fixed in the meanwhile.
Comment #3
wrwrwr commentedConfirmed, problem no longer exists with version 6.x-1.0-rc1. Sorry for not getting to this earlier.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.