mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 06:48:50 +02:00
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)
SVN:trunk[4733]
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user