@@ 71-74 (lines=4) @@ | ||
68 | } |
|
69 | ||
70 | $parentField = $this->fieldManager->fetch($parentFieldId); |
|
71 | if (!$parentField || empty($parentField)) { |
|
72 | $this->_Result->appendChild(new XMLElement('error', __('Parent field not found'))); |
|
73 | return; |
|
74 | } |
|
75 | ||
76 | if (!($parentField instanceof FieldRelationship)) { |
|
77 | $this->_Result->appendChild(new XMLElement('error', __('Parent field is `%s`, not `relationship field`', array($parentField->get('type'))))); |
|
@@ 76-79 (lines=4) @@ | ||
73 | return; |
|
74 | } |
|
75 | ||
76 | if (!($parentField instanceof FieldRelationship)) { |
|
77 | $this->_Result->appendChild(new XMLElement('error', __('Parent field is `%s`, not `relationship field`', array($parentField->get('type'))))); |
|
78 | return; |
|
79 | } |
|
80 | if (!$parentField->get('elements')) { |
|
81 | $parentField->set('elements', '*'); |
|
82 | } |