diff --git a/sources/renderer/formrenderer.class.inc.php b/sources/renderer/formrenderer.class.inc.php index 640a5442c..b1d2295ab 100644 --- a/sources/renderer/formrenderer.class.inc.php +++ b/sources/renderer/formrenderer.class.inc.php @@ -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); }