Closed (fixed)
Project:
Weblink
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2005 at 15:45 UTC
Updated:
6 Oct 2005 at 22:20 UTC
Jump to comment: Most recent file
Sorry, I have so many changes in my weblink.module, it is hard to produce a clean patch.
in weblink_validate, around line 175:
elseif (isset($node->title) && (trim($node->title) == '')) {
form_set_error('url', t('You have to specify a weblink.'));
Should the second part of the elseif statement being doing a comparison on $node->url instead of $node->title?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | weblink-validate.patch | 588 bytes | samo |
Comments
Comment #1
Bèr Kessels commentedyes. correct. please send in a patch.
Comment #2
samo commentedpatch attached
Comment #3
Bèr Kessels commentedthanks. your patch contained an errir (you forgot the first variable) but I fixed and committed that. Thanks! Oh, and also backported to 4.6
Comment #4
samo commentedsorry, i thought the first part was purposeful... i.e., don't set the error attention on url unless the title is also set
Comment #5
tihp commentedComment #6
(not verified) commentedComment #7
firedancer5 commentedComment #8
(not verified) commentedComment #9
(not verified) commented