Fixing style errors.
This commit is contained in:
parent
05aae267b1
commit
a9e48a6aac
@ -165,7 +165,7 @@ if ($action == 'add' && !empty($permissiontoadd)) {
|
||||
|
||||
// Action to update record
|
||||
if ($action == 'update' && !empty($permissiontoadd)) {
|
||||
foreach ($object->fields as $key => $val) {
|
||||
foreach ($object->fields as $key => $val) {
|
||||
// Check if field was submited to be edited
|
||||
if ($object->fields[$key]['type'] == 'duration') {
|
||||
if (!GETPOSTISSET($key.'hour') || !GETPOSTISSET($key.'min')) {
|
||||
@ -250,17 +250,17 @@ foreach ($object->fields as $key => $val) {
|
||||
$object->setCategories($categories);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Fill array 'array_options' with data from add form
|
||||
if (!$error) {
|
||||
if (!$error) {
|
||||
$ret = $extrafields->setOptionalsFromPost(null, $object, '@GETPOSTISSET');
|
||||
if ($ret < 0) {
|
||||
$error++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$error) {
|
||||
if (!$error) {
|
||||
$result = $object->update($user);
|
||||
if ($result > 0) {
|
||||
$action = 'view';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user