$this->addFlash('notice', $this->translator->trans('Location %id% updated', ['%id%' => $location['id']]));
//Redirect to cleanup the form
$this->addFlash('notice', $this->translator->trans('Location %id% updated', ['%id%' => $location['id']]));
//Redirect to cleanup the form
$this->addFlash('notice', $this->translator->trans('Location created'));
//Redirect to cleanup the form
$this->addFlash('notice', $this->translator->trans('Location created'));
//Redirect to cleanup the form
- return $this->redirectToRoute('rapsys_air_location_view', ['id' => $this->context['location']['id'], 'location' => $this->context['location']['slug']], Response::HTTP_MOVED_PERMANENTLY);
+ return $this->redirectToRoute('rapsysair_location_view', ['id' => $this->context['location']['id'], 'location' => $this->context['location']['slug']], Response::HTTP_MOVED_PERMANENTLY);
- $this->modified = max(array_merge([$this->context['location']['updated']], array_map(function ($v) { return $v['modified']; }, array_merge($this->context['calendar'], $this->context['locations']))));
+ $this->modified = max(array_merge([$this->context['location']['modified']], array_map(function ($v) { return $v['modified']; }, array_merge($this->context['calendar'], $this->context['locations']))));