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?

CommentFileSizeAuthor
#2 weblink-validate.patch588 bytessamo

Comments

Bèr Kessels’s picture

yes. correct. please send in a patch.

samo’s picture

Status: Active » Needs review
StatusFileSize
new588 bytes

patch attached

Bèr Kessels’s picture

Status: Needs review » Fixed

thanks. your patch contained an errir (you forgot the first variable) but I fixed and committed that. Thanks! Oh, and also backported to 4.6

samo’s picture

sorry, i thought the first part was purposeful... i.e., don't set the error attention on url unless the title is also set

tihp’s picture

Anonymous’s picture

firedancer5’s picture

Anonymous’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)