mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix report tests
This commit is contained in:
@@ -578,16 +578,16 @@ class module_report
|
||||
{
|
||||
switch ($domain) {
|
||||
case 'connexion' :
|
||||
return new module_report_sqlconnexion($this);
|
||||
return new module_report_sqlconnexion($this->app, $this);
|
||||
break;
|
||||
case 'download' :
|
||||
return new module_report_sqldownload($this->app, $this);
|
||||
break;
|
||||
case 'question' :
|
||||
return new module_report_sqlquestion($this);
|
||||
return new module_report_sqlquestion($this->app, $this);
|
||||
break;
|
||||
case 'action' :
|
||||
return new module_report_sqlaction($this);
|
||||
return new module_report_sqlaction($this->app, $this);
|
||||
break;
|
||||
default:
|
||||
return $this->req;
|
||||
|
@@ -9,6 +9,8 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
|
||||
/**
|
||||
*
|
||||
* @package module_report
|
||||
@@ -17,6 +19,7 @@
|
||||
*/
|
||||
class module_report_filter
|
||||
{
|
||||
private $app;
|
||||
private $posting_filter = array();
|
||||
private $cor_query = array();
|
||||
private $active_column = array();
|
||||
@@ -36,8 +39,9 @@ class module_report_filter
|
||||
'search' => 'report:: question',
|
||||
);
|
||||
|
||||
public function __construct($current_filter, $correspondance)
|
||||
public function __construct(Application $app, $current_filter, $correspondance)
|
||||
{
|
||||
$this->app = $app;
|
||||
$this->tab_filter = $current_filter;
|
||||
$this->cor_query = $correspondance;
|
||||
}
|
||||
|
Reference in New Issue
Block a user