aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/consultation
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/consultation')
-rw-r--r--app/controllers/consultation/admin.php6
-rw-r--r--app/controllers/consultation/consultation_controller.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/consultation/admin.php b/app/controllers/consultation/admin.php
index 2387775..f64c651 100644
--- a/app/controllers/consultation/admin.php
+++ b/app/controllers/consultation/admin.php
@@ -643,7 +643,7 @@ class Consultation_AdminController extends ConsultationController
} elseif ($deleted > 0) {
PageLayout::postSuccess(_('Die freien Termine wurden gelöscht'));
}
- } elseif (Request::option('delete') === 'cancel' && Request::submitted('reason')) {
+ } elseif (Request::option('delete') === 'cancel' && Request::has('reason')) {
$reason = trim(Request::get('reason'));
$deleted = 0;
@@ -668,7 +668,7 @@ class Consultation_AdminController extends ConsultationController
return;
}
} elseif (Request::submitted('cancel')) {
- if (!Request::submitted('reason')) {
+ if (!Request::has('reason')) {
PageLayout::setTitle(_('Termine absagen'));
$this->action = $this->bulk($page, $expired);
$this->render_action('cancel_slots');
@@ -925,7 +925,7 @@ class Consultation_AdminController extends ConsultationController
$index_time = $index;
}
- if (!Request::submitted("{$index}-date") || !Request::submitted("{$index_time}-time")) {
+ if (!Request::has("{$index}-date") || !Request::has("{$index_time}-time")) {
throw new Exception("Date with index '{$index}' was not submitted properly");
}
diff --git a/app/controllers/consultation/consultation_controller.php b/app/controllers/consultation/consultation_controller.php
index 00e10ad..ecdf6e4 100644
--- a/app/controllers/consultation/consultation_controller.php
+++ b/app/controllers/consultation/consultation_controller.php
@@ -13,9 +13,9 @@ abstract class ConsultationController extends AuthenticatedController
parent::before_filter($action, $args);
$type = 'person';
- if (Request::submitted('username')) {
+ if (Request::has('username')) {
$this->range = User::findByUsername(Request::username('username'));
- } elseif (Request::submitted('cid')) {
+ } elseif (Request::has('cid')) {
$this->range = Context::get();
$type = 'object';
} else {