浏览代码

Portal: Form field with custom css classes in twig definition were not included in the form. (Note: The CSS class is still absent from the rendering but this is because of the field_set.js widget that needs some upgrade in the _prepareField method)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4733 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 8 年之前
父节点
当前提交
d1776657b0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      datamodels/2.x/itop-portal-base/portal/src/forms/objectformmanager.class.inc.php

+ 1 - 1
datamodels/2.x/itop-portal-base/portal/src/forms/objectformmanager.class.inc.php

@@ -373,7 +373,7 @@ class ObjectFormManager extends FormManager
 
 			// Adding fields to the list
 			$oXPath = new \DOMXPath($oHtmlDocument);
-			foreach ($oXPath->query('//div[@class="form_field"][@data-field-id]') as $oFieldNode)
+			foreach ($oXPath->query('//div[contains(@class, "form_field")][@data-field-id]') as $oFieldNode)
 			{
 				$sFieldId = $oFieldNode->getAttribute('data-field-id');
 				$sFieldFlags = $oFieldNode->getAttribute('data-field-flags');