mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°3537 run_query : fix fatal error class not found when running query with parameters
Factory weren't renamed in this file :/
Regression brought by 5fe8ca17
This commit is contained in:
@@ -24,9 +24,9 @@ use Combodo\iTop\Application\UI\Base\Component\FieldSet\FieldSet;
|
||||
use Combodo\iTop\Application\UI\Base\Component\Form\Form;
|
||||
use Combodo\iTop\Application\UI\Base\Component\Html\Html;
|
||||
use Combodo\iTop\Application\UI\Base\Component\Html\HtmlFactory;
|
||||
use Combodo\iTop\Application\UI\Base\Component\Input\InputFactory;
|
||||
use Combodo\iTop\Application\UI\Base\Component\Input\InputUIBlockFactory;
|
||||
use Combodo\iTop\Application\UI\Base\Component\Input\TextArea;
|
||||
use Combodo\iTop\Application\UI\Base\Component\Panel\PanelFactory;
|
||||
use Combodo\iTop\Application\UI\Base\Component\Panel\PanelUIBlockFactory;
|
||||
|
||||
require_once('../approot.inc.php');
|
||||
require_once(APPROOT.'/application/application.inc.php');
|
||||
@@ -195,11 +195,11 @@ EOF
|
||||
|
||||
if (count($aArgs) > 0) {
|
||||
//--- Query arguments
|
||||
$oQueryArgsContainer = PanelFactory::MakeForInformation('Query arguments')
|
||||
$oQueryArgsContainer = PanelUIBlockFactory::MakeForInformation('Query arguments')
|
||||
->SetCSSClasses(['wizContainer']);
|
||||
$oQueryForm->AddSubBlock($oQueryArgsContainer);
|
||||
foreach ($aArgs as $sParam => $sValue) {
|
||||
$oArgInput = InputFactory::MakeForInputWithLabel(
|
||||
$oArgInput = InputUIBlockFactory::MakeForInputWithLabel(
|
||||
$sParam,
|
||||
'arg_'.$sParam,
|
||||
$sValue
|
||||
@@ -304,7 +304,7 @@ EOF
|
||||
$oMoreInfoSection->EnableSaveCollapsibleState('run_query__more-info');
|
||||
$oP->AddUiBlock($oMoreInfoSection);
|
||||
} elseif ($sSyntaxError) {
|
||||
$oSyntaxErrorPanel = PanelFactory::MakeForFailure(Dict::S('UI:RunQuery:Error'));
|
||||
$oSyntaxErrorPanel = PanelUIBlockFactory::MakeForFailure(Dict::S('UI:RunQuery:Error'));
|
||||
$oP->AddUiBlock($oSyntaxErrorPanel);
|
||||
|
||||
if ($e instanceof OqlException) {
|
||||
|
||||
Reference in New Issue
Block a user