From d312bf74b90deddee67afb7193ee54badebbfab6 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Thu, 4 Feb 2021 15:55:04 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B03537=20run=5Fquery=20:=20fix=20fatal=20e?= =?UTF-8?q?rror=20class=20not=20found=20when=20running=20query=20with=20pa?= =?UTF-8?q?rameters=20Factory=20weren't=20renamed=20in=20this=20file=20:/?= =?UTF-8?q?=20Regression=20brought=20by=205fe8ca17?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/run_query.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/run_query.php b/pages/run_query.php index 1d5295082..69702cf4b 100644 --- a/pages/run_query.php +++ b/pages/run_query.php @@ -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) {