Commit 93f114c0 authored by AaronBauman's avatar AaronBauman Committed by tim.plunkett
Browse files

Issue #1638074 by aaronbauman: Fixed views_handler_field_url() is not...

Issue #1638074 by aaronbauman: Fixed views_handler_field_url() is not compatible with views_handler_field_contextual_links().
parent f8d58182
......@@ -34,7 +34,10 @@ function options_form(&$form, &$form_state) {
function render($values) {
$value = $this->get_value($values);
if (!empty($this->options['display_as_link'])) {
return l($this->sanitize_value($value), $value, array('html' => TRUE));
$this->options['alter']['make_link'] = TRUE;
$this->options['alter']['path'] = $value;
$text = !empty($this->options['text']) ? $this->sanitize_value($this->options['text']) : $this->sanitize_value($value, 'url');
return $text;
}
else {
return $this->sanitize_value($value, 'url');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment