Skip to content
Permalink
Browse files

Make get handler actually work

  • Loading branch information...
flack committed Aug 12, 2019
1 parent 953731f commit 7fa3e15786b15a53038ac9bce29a897d82ccbbfa
@@ -7,6 +7,7 @@
*/
use midcom\grid\grid;
use Symfony\Component\HttpFoundation\Request;
/**
* Invoices reporting
@@ -30,7 +31,21 @@ public function _on_initialize()
public function _handler_generator(array $args, array &$data)
{
parent::_handler_generator($args, $data);
$this->process_handler($data);
}
/**
* @param array $args The argument list.
* @param array $data The local request data.
*/
public function _handler_generator_get(Request $request, array &$data)
{
parent::_handler_generator_get($request, $data);
$this->process_handler($data);
}
private function process_handler(array &$data)
{
$data['start'] = $data['query_data']['start'];
$data['end'] = $data['query_data']['end'];
@@ -13,7 +13,7 @@
$entries = [];
$grid_id = 'invoices_report_grid';
if ($data['query']->orgOpenpsaObtype !== org_openpsa_reports_query_dba::OBTYPE_REPORT_TEMPORARY) {
if (!empty($data['query']) && $data['query']->orgOpenpsaObtype !== org_openpsa_reports_query_dba::OBTYPE_REPORT_TEMPORARY) {
$grid_id .= $data['query']->id;
}

0 comments on commit 7fa3e15

Please sign in to comment.
You can’t perform that action at this time.