diff --git a/htdocs/accountancy/admin/card.php b/htdocs/accountancy/admin/card.php
index fa3adf1301b..ef707bbc43a 100644
--- a/htdocs/accountancy/admin/card.php
+++ b/htdocs/accountancy/admin/card.php
@@ -63,7 +63,7 @@ if ($action == 'add' && $user->rights->accounting->chartofaccount)
{
if (! $cancel) {
$sql = 'SELECT pcg_version FROM ' . MAIN_DB_PREFIX . 'accounting_system WHERE rowid=' . $conf->global->CHARTOFACCOUNTS;
-
+
dol_syslog('accountancy/admin/card.php:: $sql=' . $sql);
$result = $db->query($sql);
$obj = $db->fetch_object($result);
@@ -172,16 +172,16 @@ if ($action == 'add' && $user->rights->accounting->chartofaccount)
}
} else if ($action == 'delete' && $user->rights->accounting->chartofaccount) {
$result = $object->fetch($id);
-
+
if (! empty($object->id)) {
$result = $object->delete($user);
-
+
if ($result > 0) {
header("Location: account.php");
exit;
}
}
-
+
if ($result < 0) {
setEventMessages($object->error, $object->errors, 'errors');
}
@@ -270,7 +270,7 @@ if ($action == 'create') {
$head = accounting_prepare_head($object);
// Edit mode
- if ($action == 'update')
+ if ($action == 'update')
{
dol_fiche_head($head, 'card', $langs->trans('AccountAccounting'), 0, 'billr');
@@ -327,7 +327,7 @@ if ($action == 'create') {
print '';
} else {
// View mode
- $linkback = '' . $langs->trans("BackToChartofaccounts") . '';
+ $linkback = '' . $langs->trans("BackToList") . '';
dol_fiche_head($head, 'card', $langs->trans('AccountAccounting'), 0, 'billr');