eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/RelationConverter.php 1 location
|
@@ 153-158 (lines=6) @@
|
| 150 |
|
$fieldSettings['selectionMethod'] = (int)$selectionType->item(0)->getAttribute('value'); |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
if ( |
| 154 |
|
($defaultLocation = $dom->getElementsByTagName('contentobject-placement')) && |
| 155 |
|
$defaultLocation->item(0)->hasAttribute('node-id') |
| 156 |
|
) { |
| 157 |
|
$fieldSettings['selectionRoot'] = (int)$defaultLocation->item(0)->getAttribute('node-id'); |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
if (!($constraints = $dom->getElementsByTagName('constraints'))) { |
| 161 |
|
return; |
eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/RelationListConverter.php 1 location
|
@@ 217-222 (lines=6) @@
|
| 214 |
|
$fieldSettings['selectionMethod'] = (int)$selectionType->item(0)->getAttribute('value'); |
| 215 |
|
} |
| 216 |
|
|
| 217 |
|
if ( |
| 218 |
|
($defaultLocation = $dom->getElementsByTagName('contentobject-placement')) && |
| 219 |
|
$defaultLocation->item(0)->hasAttribute('node-id') |
| 220 |
|
) { |
| 221 |
|
$fieldSettings['selectionDefaultLocation'] = (int)$defaultLocation->item(0)->getAttribute('node-id'); |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
if (!($constraints = $dom->getElementsByTagName('constraints'))) { |
| 225 |
|
return; |