eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/RelationConverter.php 1 location
|
@@ 160-165 (lines=6) @@
|
| 157 |
|
$fieldSettings['selectionMethod'] = (int)$selectionType->getAttribute('value'); |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
if ( |
| 161 |
|
($defaultLocation = $dom->getElementsByTagName('contentobject-placement')->item(0)) && |
| 162 |
|
$defaultLocation->hasAttribute('node-id') |
| 163 |
|
) { |
| 164 |
|
$fieldSettings['selectionRoot'] = (int)$defaultLocation->getAttribute('node-id'); |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
if (!($constraints = $dom->getElementsByTagName('constraints'))) { |
| 168 |
|
return; |
eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/RelationListConverter.php 1 location
|
@@ 236-241 (lines=6) @@
|
| 233 |
|
$fieldSettings['selectionMethod'] = (int)$selectionType->getAttribute('value'); |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
if ( |
| 237 |
|
($defaultLocation = $dom->getElementsByTagName('contentobject-placement')->item(0)) && |
| 238 |
|
$defaultLocation->hasAttribute('node-id') |
| 239 |
|
) { |
| 240 |
|
$fieldSettings['selectionDefaultLocation'] = (int)$defaultLocation->getAttribute('node-id'); |
| 241 |
|
} |
| 242 |
|
|
| 243 |
|
if (!($constraints = $dom->getElementsByTagName('constraints'))) { |
| 244 |
|
return; |