From 3e0f14ae2b0b5a44bd038a472f17eac75f538524 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 23 Sep 2017 20:56:54 -0700 Subject: Do not expose IDs in forms --- app/Template/task_external_link/edit.php | 2 +- app/Template/task_external_link/find.php | 1 - app/Template/task_external_link/form.php | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) (limited to 'app/Template/task_external_link') diff --git a/app/Template/task_external_link/edit.php b/app/Template/task_external_link/edit.php index df10d444..e448b10f 100644 --- a/app/Template/task_external_link/edit.php +++ b/app/Template/task_external_link/edit.php @@ -2,7 +2,7 @@

-
+ render('task_external_link/form', array('task' => $task, 'dependencies' => $dependencies, 'values' => $values, 'errors' => $errors)) ?> modal->submitButtons() ?>
diff --git a/app/Template/task_external_link/find.php b/app/Template/task_external_link/find.php index a3665c0d..29d85101 100644 --- a/app/Template/task_external_link/find.php +++ b/app/Template/task_external_link/find.php @@ -4,7 +4,6 @@
form->csrf() ?> - form->hidden('task_id', array('task_id' => $task['id'])) ?> form->label(t('External link'), 'text') ?> form->text( diff --git a/app/Template/task_external_link/form.php b/app/Template/task_external_link/form.php index 932ca521..4ad2b2e0 100644 --- a/app/Template/task_external_link/form.php +++ b/app/Template/task_external_link/form.php @@ -1,6 +1,4 @@ form->csrf() ?> -form->hidden('task_id', array('task_id' => $task['id'])) ?> -form->hidden('id', $values) ?> form->hidden('link_type', $values) ?> form->label(t('URL'), 'url') ?> -- cgit v1.2.3