/**
  * update activity Other Identifier
  * @param OtherIdentifierRequestManager $otherIdentifierRequestManager
  * @param Request                       $request
  * @param                               $id
  * @return \Illuminate\Http\RedirectResponse
  */
 public function update(OtherIdentifierRequestManager $otherIdentifierRequestManager, Request $request, $id)
 {
     $activityData = $this->otherIdentifierManager->getActivityData($id);
     if (Gate::denies('ownership', $activityData)) {
         return redirect()->back()->withResponse($this->getNoPrivilegesMessage());
     }
     $this->authorizeByRequestType($activityData, 'other_identifier');
     $input = $request->all();
     if ($this->otherIdentifierManager->update($input, $activityData)) {
         $this->activityManager->resetActivityWorkflow($id);
         $response = ['type' => 'success', 'code' => ['updated', ['name' => 'Other Activity Identifier']]];
         return redirect()->to(sprintf('/activity/%s', $id))->withResponse($response);
     }
     $response = ['type' => 'danger', 'code' => ['update_failed', ['name' => 'Other Activity Identifier']]];
     return redirect()->back()->withInput()->withResponse($response);
 }