Closed (fixed)
Project:
Weblink
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2005 at 14:51 UTC
Updated:
17 Sep 2005 at 22:40 UTC
Jump to comment: Most recent file
I created a new site using Drupal 4.6.1 from scratch.
The weblink module has a problem: I can add weblinks just fine, but when I try to update existing links, I can't get Drupal to remember the new url. It just always reverts to the old url that was initially entered. Even if I look in the weblinks table using the command line mysql client, the old url is still there.
It seems as if drupal does not pick up the newly entered url while updating a weblink. Changes to the text body (description) are remembered.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | weblink_10.patch | 497 bytes | Steve Dondley |
Comments
Comment #1
wbsoft commentedI fixed it myself but don't know if it is correct. I don't really understand the lid stuff in weblink.module.
I changed the function weblink_update (weblink.module line 148) like this:
(it uses the same logic as the weblink_delete function)
Comment #2
Bèr Kessels commentedlid is the link id. Care to commit a patch?
Comment #3
laura s commentedThat fix did it. I've not created a patch but manually it would look something like:
Comment #4
ron_mahon commentedLaura
Thanks For the update it works fine on my site.
There may have been some things wrong with the old web links but had lots of functionality.
I miss it
Best regards
Ron
Comment #5
Steve Dondley commentedHere's a somewhat simpler patch.
I'm confused though: Why doesn't drupal load the entire node before passing it on to the _update hook?
Comment #6
Bèr Kessels commentedfixed in HEAD. Thanks a lot for the last patch nysus. I like that simple approach a lot.
Comment #7
(not verified) commentedComment #8
(not verified) commentedComment #9
(not verified) commentedComment #10
(not verified) commentedComment #11
(not verified) commentedComment #12
(not verified) commented