Skip to content

Commit a489ecb

Browse files
committed
Enhance action handling to support both retrieve and upsert in AbstractSugarBeanEndpoint
1 parent 275691e commit a489ecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Endpoint/Abstracts/AbstractSugarBeanEndpoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ protected function configureRequest(Request $request, $data): Request
169169
$this->_uploadFile['field'] => $this->_uploadFile['path'],
170170
]);
171171
$data = null;
172-
} elseif ($this->getCurrentAction() === self::MODEL_ACTION_RETRIEVE) {
172+
} elseif (in_array($this->getCurrentAction(), [self::MODEL_ACTION_RETRIEVE, self::BEAN_ACTION_UPSERT])) {
173173
$data = $this->configureFieldsDataProps($data);
174174
}
175175

0 commit comments

Comments
 (0)