Skip to content
Snippets Groups Projects
Commit 04db3e66 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #12691 : fix return value of call_user_func + add run-ajax link

parent c43f6327
Branches
Tags
5 merge requests!258Dev/13872 Orphee Allow Hold Available Items,!215Dev#12992 Custom Fields,!209Hotline#13914 Album Link Config Menu,!190Dev#12691 Autocomplete,!165Dev#12691 Autocomplete
......@@ -6,11 +6,13 @@ echo $this->bouton('id=add',
'id' => null])
);
echo $this->tagModelTable($this->batchs,
[$this->_('Libelle'), $this->_('Dernière exécution')],
['Libelle', 'last_run'],
[ ['action' => 'delete', 'content' => $this->boutonIco('type=del')],
['action' => 'run', 'content' => $this->boutonIco('type=test')] ],
'batchs');
echo $this->tagModelTable(
$this->batchs,
[$this->_('Libelle'), $this->_('Dernière exécution')],
['Libelle', 'last_run'],
[['action' => 'delete', 'content' => $this->boutonIco('type=del')],
['action' => 'run', 'content' => $this->boutonIco('type=test')],
['action' => 'run-ajax', 'content' => $this->boutonIco('type=test')] ],
'batchs');
?>
......@@ -56,7 +56,7 @@ class Class_Autocomplete_Index {
public static function __callStatic($name, $args) {
$class = static::getClassFor($name);
$method = static::getMethodFor($name);
call_user_func_array([$class, $method], $args);
return call_user_func_array([$class, $method], $args);
}
......
......@@ -76,6 +76,12 @@ class BatchControllerWithBatchInDb extends BatchControllerTestCase {
public function batchActionShouldRunMyTask() {
$this->assertXPath('//a[contains(@href, "batch/run")]');
}
/** @test */
public function batchActionShouldRunAjaxMyTask() {
$this->assertXPath('//a[contains(@href, "batch/run-ajax")]');
}
}
......
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