diff --git a/src/app/resource/controllers/ResController.php b/src/app/resource/controllers/ResController.php index 9f4d26967fcbcaf5d5d3650d05b6d3377d36b20e..df15c4399a6952d866e2ef2d5630de3445d4b80c 100755 --- a/src/app/resource/controllers/ResController.php +++ b/src/app/resource/controllers/ResController.php @@ -246,6 +246,8 @@ class ResController extends ResourceControlController $onlyDocument = !empty($queryParams['onlyDocument']); + unset($body['destination']); + unset($body['diffusionList']); $control = ResourceControlController::controlUpdateResource(['body' => $body, 'resId' => $args['resId'], 'onlyDocument' => $onlyDocument]); if (!empty($control['errors'])) { return $response->withStatus(400)->withJson(['errors' => $control['errors']]); diff --git a/src/app/resource/controllers/StoreController.php b/src/app/resource/controllers/StoreController.php index d254f2f857cd6ac0ff4750502d19419148c46978..7b03c0a3b60818d4d6c23288254e876b9dff7211 100755 --- a/src/app/resource/controllers/StoreController.php +++ b/src/app/resource/controllers/StoreController.php @@ -238,10 +238,6 @@ class StoreController $entity = EntityModel::getById(['id' => $args['initiator'], 'select' => ['entity_id']]); $preparedData['initiator'] = $entity['entity_id']; } - if (!empty($args['destination'])) { - $entity = EntityModel::getById(['id' => $args['destination'], 'select' => ['entity_id']]); - $preparedData['destination'] = $entity['entity_id']; - } if (isset($args['documentDate'])) { $preparedData['doc_date'] = $args['documentDate'];