Retrofit from trunk

N°925 - Fix portal when request template field is in autocomplete mode with a wrong value
* No error is displayed, but the actual value is set to '0' [from revision 5215]

SVN:2.4[5227]
This commit is contained in:
Eric Espié
2018-01-10 13:45:04 +00:00
parent 4bb91b819c
commit 7aaa35f88e

View File

@@ -19,19 +19,15 @@
namespace Combodo\iTop\Renderer\Bootstrap\FieldRenderer;
use \Exception;
use \CoreException;
use \utils;
use \IssueLog;
use \Dict;
use \UserRights;
use \InlineImage;
use \DBObjectSet;
use \MetaModel;
use \ContextTag;
use \Combodo\iTop\Renderer\FieldRenderer;
use \Combodo\iTop\Renderer\RenderingOutput;
use \Combodo\iTop\Form\Field\SelectObjectField;
use Combodo\iTop\Renderer\FieldRenderer;
use Combodo\iTop\Renderer\RenderingOutput;
use ContextTag;
use CoreException;
use DBObjectSet;
use Dict;
use Exception;
use IssueLog;
use MetaModel;
/**
* Description of BsSelectObjectFieldRenderer
@@ -155,7 +151,8 @@ EOF
$sNoResultText = Dict::S('Portal:Autocomplete:NoResult');
// Retrieving field value
if (($this->oField->GetCurrentValue() !== null) && ($this->oField->GetCurrentValue() !== 0) && ($this->oField->GetCurrentValue() !== ''))
$currentValue = $this->oField->GetCurrentValue();
if (!empty($currentValue))
{
try
{