* * @property \Combodo\iTop\Form\Field\SelectObjectField $oField */ class BsSelectObjectFieldRenderer extends BsFieldRenderer { /** * @inheritDoc */ public function Render() { $oOutput = parent::Render(); $sFieldValueClass = $this->oField->GetSearch()->GetClass(); $sFieldMandatoryClass = ($this->oField->GetMandatory()) ? 'form_mandatory' : ''; $iFieldControlType = $this->oField->GetControlType(); $sFieldDescriptionForHTMLTag = ($this->oField->HasDescription()) ? 'data-tooltip-content="'.utils::HtmlEntities($this->oField->GetDescription()).'"' : ''; // TODO : Remove this when hierarchical search supported $this->oField->SetHierarchical(false); // Rendering field in edition mode if (!$this->oField->GetReadOnly() && !$this->oField->GetHidden()) { // Debug trace: This is very useful when this kind of field doesn't return the expected values. if(ContextTag::Check('debug')) { IssueLog::Info('Form field #'.$this->oField->GetId().' OQL query: '.$this->oField->GetSearch()->ToOQL(true)); } // Rendering field // - Opening container $oOutput->AddHtml('