mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +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\Form\Form;
|
||||||
use Combodo\iTop\Application\UI\Base\Component\Html\Html;
|
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\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\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.inc.php');
|
||||||
require_once(APPROOT.'/application/application.inc.php');
|
require_once(APPROOT.'/application/application.inc.php');
|
||||||
@@ -195,11 +195,11 @@ EOF
|
|||||||
|
|
||||||
if (count($aArgs) > 0) {
|
if (count($aArgs) > 0) {
|
||||||
//--- Query arguments
|
//--- Query arguments
|
||||||
$oQueryArgsContainer = PanelFactory::MakeForInformation('Query arguments')
|
$oQueryArgsContainer = PanelUIBlockFactory::MakeForInformation('Query arguments')
|
||||||
->SetCSSClasses(['wizContainer']);
|
->SetCSSClasses(['wizContainer']);
|
||||||
$oQueryForm->AddSubBlock($oQueryArgsContainer);
|
$oQueryForm->AddSubBlock($oQueryArgsContainer);
|
||||||
foreach ($aArgs as $sParam => $sValue) {
|
foreach ($aArgs as $sParam => $sValue) {
|
||||||
$oArgInput = InputFactory::MakeForInputWithLabel(
|
$oArgInput = InputUIBlockFactory::MakeForInputWithLabel(
|
||||||
$sParam,
|
$sParam,
|
||||||
'arg_'.$sParam,
|
'arg_'.$sParam,
|
||||||
$sValue
|
$sValue
|
||||||
@@ -304,7 +304,7 @@ EOF
|
|||||||
$oMoreInfoSection->EnableSaveCollapsibleState('run_query__more-info');
|
$oMoreInfoSection->EnableSaveCollapsibleState('run_query__more-info');
|
||||||
$oP->AddUiBlock($oMoreInfoSection);
|
$oP->AddUiBlock($oMoreInfoSection);
|
||||||
} elseif ($sSyntaxError) {
|
} elseif ($sSyntaxError) {
|
||||||
$oSyntaxErrorPanel = PanelFactory::MakeForFailure(Dict::S('UI:RunQuery:Error'));
|
$oSyntaxErrorPanel = PanelUIBlockFactory::MakeForFailure(Dict::S('UI:RunQuery:Error'));
|
||||||
$oP->AddUiBlock($oSyntaxErrorPanel);
|
$oP->AddUiBlock($oSyntaxErrorPanel);
|
||||||
|
|
||||||
if ($e instanceof OqlException) {
|
if ($e instanceof OqlException) {
|
||||||
|
|||||||
Reference in New Issue
Block a user