mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-16 08:54:12 +01:00
🎨 Fix argument of \ormCustomFieldsValue::GetForm
This commit is contained in:
@@ -2508,6 +2508,7 @@ HTML;
|
||||
$sHTMLValue .= '<div>'.$sReloadSpan.'</div>'; // No validation span for this one: it does handle its own validation!
|
||||
$sHTMLValue .= "<input name=\"attr_{$sFieldPrefix}{$sAttCode}{$sNameSuffix}\" type=\"hidden\" id=\"$iId\" value=\"\"/>\n";
|
||||
|
||||
/** @var \ormCustomFieldsValue $value */
|
||||
$oForm = $value->GetForm($sFormPrefix);
|
||||
$oPredefQueryRenderer = new ConsoleFormRenderer($oForm);
|
||||
$aRenderRes = $oPredefQueryRenderer->Render();
|
||||
|
||||
@@ -50,10 +50,11 @@ class ormCustomFieldsValue
|
||||
* Wrapper used when the only thing you have is the value...
|
||||
* @return \Combodo\iTop\Form\Form
|
||||
*/
|
||||
public function GetForm()
|
||||
public function GetForm($sFormPrefix = null)
|
||||
{
|
||||
$oAttDef = MetaModel::GetAttributeDef(get_class($this->oHostObject), $this->sAttCode);
|
||||
return $oAttDef->GetForm($this->oHostObject);
|
||||
|
||||
return $oAttDef->GetForm($this->oHostObject, $sFormPrefix);
|
||||
}
|
||||
|
||||
public function GetAsHTML($bLocalize = true)
|
||||
|
||||
Reference in New Issue
Block a user