20 $id = $request->getPost(
'id');
21 if (empty($id) || !is_numeric($id))
34 $entity =
new CIBlockElement();
35 $updateResult = $entity->Update($id, [
36 'ACTIVE' => $this->getSetActiveValue(),
40 $message = $entity->getLastError() ?:
'Cant update element';
41 $result->addError(
new Error($message));