mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Prerequisites for custom fields
SVN:trunk[3937]
This commit is contained in:
@@ -187,12 +187,13 @@ abstract class FormRenderer
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function Render()
|
||||
public function Render($aRequestedFields = null)
|
||||
{
|
||||
$this->InitOutputs();
|
||||
|
||||
foreach ($this->oForm->GetFields() as $oField)
|
||||
{
|
||||
if ($aRequestedFields !== null && !in_array($oField->GetId(), $aRequestedFields)) continue;
|
||||
$this->aOutputs[$oField->GetId()] = $this->PrepareOutputForField($oField);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user