It would seem that the optional URL Template field is being considered as obligatory (see screenshot attached) - even when editing and saving the classes that come pre-installed.

Any ideas?

Thanks a mil.

Comments

mh-1’s picture

Category: support » bug

Same problem here: Entry of URL Template not optional but obligatory. Any help would be appreciated!

telcontar’s picture

Replace the folloing line in contextlinks.module:
if (!valid_url($template, TRUE) && !valid_url($template, FALSE)) {

with
if ($template && !valid_url($template, TRUE) && !valid_url($template, FALSE)) {

I believe that should do it.
You could also apply the attached, oh-so-trivial patch by placing it in the module's directory and run
patch < contextlinks-5.x-1.1-URL_template_validation.patch

-- HTH, telcontar

Doobyfrucan’s picture

Thanks. That patch is most appreciated.

jhriggs’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » jhriggs
Status: Active » Fixed

This is fixed in version 5.x-1.2. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)