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'

SVN:trunk[5215]
This commit is contained in:
Eric Espié
2018-01-09 13:57:29 +00:00
parent 8d9d4e67ca
commit 3b621adcb2

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
{