Commit a83771f5 authored by kroky6's avatar kroky6

[FIX] plugin listexecute without custom output option was not executing...

[FIX] plugin listexecute without custom output option was not executing actions correctly due to wrong format of search results
parent b1688274
......@@ -98,6 +98,18 @@ function wikiplugin_listexecute($data, $params)
$formatter = $builder->getFormatter();
if( !$customOutput ) {
$plugin = new Search_Formatter_Plugin_SmartyTemplate('templates/wiki-plugins/wikiplugin_listexecute.tpl');
$plugin->setFields(array('report_status' => null));
$plugin->setData(
array(
'actions' => array_keys($actions),
'iListExecute' => $iListExecute
)
);
$formatter = new Search_Formatter($plugin);
}
if (isset($_POST['list_action'], $_POST['objects'])) {
$action = $_POST['list_action'];
$objects = (array) $_POST['objects'];
......@@ -128,17 +140,5 @@ function wikiplugin_listexecute($data, $params)
}
}
if( !$customOutput ) {
$plugin = new Search_Formatter_Plugin_SmartyTemplate('templates/wiki-plugins/wikiplugin_listexecute.tpl');
$plugin->setFields(array('report_status' => null));
$plugin->setData(
array(
'actions' => array_keys($actions),
'iListExecute' => $iListExecute
)
);
$formatter = new Search_Formatter($plugin);
}
return $formatter->format($result);
}
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