diff --git a/src/app/resource/controllers/ResController.php b/src/app/resource/controllers/ResController.php
index 9f44519a600dd8a24d2dbef0915140bd2b83058f..4aa74eb6c5816c7209a785f6346398593a1e7ea4 100755
--- a/src/app/resource/controllers/ResController.php
+++ b/src/app/resource/controllers/ResController.php
@@ -911,7 +911,7 @@ class ResController
     {
         $body = $args['body'];
 
-        $resource = ResModel::getById(['resId' => $args['resId'], 'select' => ['status']]);
+        $resource = ResModel::getById(['resId' => $args['resId'], 'select' => ['status', 'model_id']]);
         if (empty($resource['status'])) {
             return ['errors' => 'Resource status is empty. It can not be modified'];
         }
@@ -941,6 +941,7 @@ class ResController
             return ['errors' => $control['errors']];
         }
 
+        $body['modelId'] = $resource['model_id'];
         $control = ResController::controlIndexingModelFields(['body' => $body]);
         if (!empty($control['errors'])) {
             return ['errors' => $control['errors']];