<div dir="ltr">Hi all,<div><br></div><div>Ran into an error if the result returns no rows in a development enviroment.</div><div><br></div><div><div>foreach($records as $moduleName=>$recordModels) </div><div>{</div><div>
foreach($recordModels as $recordModel) {</div><div><span class="" style="white-space:pre"> </span>$result[] = array('label'=>decode_html($recordModel->getName()), 'value'=>decode_html($recordModel->getName()), 'id'=>$recordModel->getId());</div>
<div><span class="" style="white-space:pre"> </span>}</div><div><span class="" style="white-space:pre"> </span>}</div></div></div>