Category label is broken on the board if there's a url in the description
This commit is contained in:
@@ -40,6 +40,7 @@ Improvements:
|
|||||||
|
|
||||||
Bug fixes:
|
Bug fixes:
|
||||||
|
|
||||||
|
* Category label is broken on the board if there's a url in the description
|
||||||
* Fix pagination on task time tracking page
|
* Fix pagination on task time tracking page
|
||||||
|
|
||||||
Version 1.0.24
|
Version 1.0.24
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class Url extends Base
|
|||||||
*/
|
*/
|
||||||
public function link($label, $controller, $action, array $params = array(), $csrf = false, $class = '', $title = '', $new_tab = false, $anchor = '')
|
public function link($label, $controller, $action, array $params = array(), $csrf = false, $class = '', $title = '', $new_tab = false, $anchor = '')
|
||||||
{
|
{
|
||||||
return '<a href="'.$this->href($controller, $action, $params, $csrf, $anchor).'" class="'.$class.'" title="'.$title.'" '.($new_tab ? 'target="_blank"' : '').'>'.$label.'</a>';
|
return '<a href="'.$this->href($controller, $action, $params, $csrf, $anchor).'" class="'.$class.'" title=\''.$title.'\' '.($new_tab ? 'target="_blank"' : '').'>'.$label.'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ class UrlHelperTest extends Base
|
|||||||
{
|
{
|
||||||
$h = new Url($this->container);
|
$h = new Url($this->container);
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'<a href="?controller=a&action=b&d=e&plugin=something" class="f" title="g" target="_blank">label</a>',
|
'<a href="?controller=a&action=b&d=e&plugin=something" class="f" title=\'g\' target="_blank">label</a>',
|
||||||
$h->link('label', 'a', 'b', array('d' => 'e', 'plugin' => 'something'), false, 'f', 'g', true)
|
$h->link('label', 'a', 'b', array('d' => 'e', 'plugin' => 'something'), false, 'f', 'g', true)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,7 @@ class UrlHelperTest extends Base
|
|||||||
|
|
||||||
$h = new Url($this->container);
|
$h = new Url($this->container);
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'<a href="myplugin/something/e" class="f" title="g" target="_blank">label</a>',
|
'<a href="myplugin/something/e" class="f" title=\'g\' target="_blank">label</a>',
|
||||||
$h->link('label', 'a', 'b', array('d' => 'e', 'plugin' => 'something'), false, 'f', 'g', true)
|
$h->link('label', 'a', 'b', array('d' => 'e', 'plugin' => 'something'), false, 'f', 'g', true)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -33,7 +33,7 @@ class UrlHelperTest extends Base
|
|||||||
{
|
{
|
||||||
$h = new Url($this->container);
|
$h = new Url($this->container);
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'<a href="?controller=a&action=b&d=e" class="f" title="g" target="_blank">label</a>',
|
'<a href="?controller=a&action=b&d=e" class="f" title=\'g\' target="_blank">label</a>',
|
||||||
$h->link('label', 'a', 'b', array('d' => 'e'), false, 'f', 'g', true)
|
$h->link('label', 'a', 'b', array('d' => 'e'), false, 'f', 'g', true)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user