diff --git a/htdocs/core/lib/project.lib.php b/htdocs/core/lib/project.lib.php
index 7f5daf77c4a..90a67991413 100644
--- a/htdocs/core/lib/project.lib.php
+++ b/htdocs/core/lib/project.lib.php
@@ -823,7 +823,7 @@ function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$t
}
}
- if (count($arrayfields) > 0 && !empty($arrayfields['c.budget_amount']['checked'])) {
+ if (count($arrayfields) > 0 && !empty($arrayfields['t.budget_amount']['checked'])) {
print '
';
print price($lines[$i]->budget_amount, 0, $langs, 1, 0, 0, $conf->currency);
$total_budget_amount += $lines[$i]->budget_amount;
diff --git a/htdocs/user/card.php b/htdocs/user/card.php
index 4d748cd6946..c5103278dda 100644
--- a/htdocs/user/card.php
+++ b/htdocs/user/card.php
@@ -505,6 +505,7 @@ if (empty($reshook)) {
setEventMessages($langs->trans("ErrorLoginAlreadyExists", $object->login), null, 'errors');
} else {
setEventMessages($object->error, $object->errors, 'errors');
+ $action = 'edit';
}
}
}
|