projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Incrementing version for the previous change
[timetracker.git]
/
cf_custom_field_delete.php
diff --git
a/cf_custom_field_delete.php
b/cf_custom_field_delete.php
index
7ae62ac
..
4e17cd0
100644
(file)
--- a/
cf_custom_field_delete.php
+++ b/
cf_custom_field_delete.php
@@
-41,20
+41,19
@@
$id = $request->getParameter('id');
$form = new Form('fieldDeleteForm');
if ($request->getMethod() == 'POST') {
$form = new Form('fieldDeleteForm');
if ($request->getMethod() == 'POST') {
- if ($request->getParameter('btn_delete'))
{
-
// Delete button pressed.
-
$res = CustomFields::deleteField($id);
+ if ($request->getParameter('btn_delete')) {
+ // Delete button pressed.
+ $res = CustomFields::deleteField($id);
if ($res) {
header('Location: cf_custom_fields.php');
exit();
if ($res) {
header('Location: cf_custom_fields.php');
exit();
- } else
{
+ } else
$errors->add($i18n->getKey('error.db'));
$errors->add($i18n->getKey('error.db'));
- }
}
if ($request->getParameter('btn_cancel')) {
}
if ($request->getParameter('btn_cancel')) {
-
// Cancel button pressed.
-
header('Location: cf_custom_fields.php');
-
exit();
+ // Cancel button pressed.
+ header('Location: cf_custom_fields.php');
+ exit();
}
} else {
$field = CustomFields::getField($id);
}
} else {
$field = CustomFields::getField($id);