Skip to content

Commit

Permalink
Remove option to hide FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
aspangaro committed Sep 30, 2019
1 parent 8dea427 commit f915139
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 30 deletions.
29 changes: 1 addition & 28 deletions htdocs/accountancy/admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,6 @@
}
}

// TO DO Mutualize code for yes/no constants
if ($action == 'setdisablefaq') {
$setdisablefaq = GETPOST('value', 'int');
$res = dolibarr_set_const($db, "ACCOUNTING_DISABLE_FAQ", $setdisablefaq, 'yesno', 0, '', $conf->entity);
if (! $res > 0)
$error ++;

if (! $error) {
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
} else {
setEventMessages($langs->trans("Error"), null, 'mesgs');
}
}

if ($action == 'setlistsorttodo') {
$setlistsorttodo = GETPOST('value', 'int');
$res = dolibarr_set_const($db, "ACCOUNTING_LIST_SORT_VENTILATION_TODO", $setlistsorttodo, 'yesno', 0, '', $conf->entity);
Expand Down Expand Up @@ -225,20 +211,7 @@
{
// TO DO Mutualize code for yes/no constants
print '<tr class="oddeven">';
print '<td>' . $langs->trans("ACCOUNTING_DISABLE_FAQ") . '</td>';
if (! empty($conf->global->ACCOUNTING_DISABLE_FAQ)) {
print '<td class="right"><a class="reposition" href="' . $_SERVER['PHP_SELF'] . '?action=setdisablefaq&value=0">';
print img_picto($langs->trans("Activated"), 'switch_on');
print '</a></td>';
} else {
print '<td class="right"><a class="reposition" href="' . $_SERVER['PHP_SELF'] . '?action=setdisablefaq&value=1">';
print img_picto($langs->trans("Disabled"), 'switch_off');
print '</a></td>';
}
print '</tr>';

print '<tr>';
print '<td>' . $langs->trans("ACCOUNTING_LIST_SORT_VENTILATION_TODO") . '</td>';
print '<td>' . $langs->trans("ACCOUNTING_LIST_SORT_VENTILATION_TODO") . '</td>';
if (! empty($conf->global->ACCOUNTING_LIST_SORT_VENTILATION_TODO)) {
print '<td class="right"><a class="reposition" href="' . $_SERVER['PHP_SELF'] . '?action=setlistsorttodo&value=0">';
print img_picto($langs->trans("Activated"), 'switch_on');
Expand Down
2 changes: 1 addition & 1 deletion htdocs/accountancy/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
{
$resultboxes=FormOther::getBoxesArea($user, "1"); // Load $resultboxes (selectboxlist + boxactivated + boxlista + boxlistb)

print load_fiche_titre($langs->trans("AccountancyArea"), $resultboxes['selectboxlist'], 'title_accountancy');
print load_fiche_titre($langs->trans("AccountancyArea"), $resultboxes['selectboxlist'], 'accountancy');

// FAQ
if (empty($conf->global->ACCOUNTING_DISABLE_FAQ)) {
Expand Down
1 change: 0 additions & 1 deletion htdocs/langs/en_US/accountancy.lang
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ NotVentilatedinAccount=Not bound to the accounting account
XLineSuccessfullyBinded=%s products/services successfully bound to an accounting account
XLineFailedToBeBinded=%s products/services were not bound to any accounting account

ACCOUNTING_DISABLE_FAQ=Disable FAQ on accountancy area
ACCOUNTING_LIMIT_LIST_VENTILATION=Number of elements to bind shown by page (maximum recommended: 50)
ACCOUNTING_LIST_SORT_VENTILATION_TODO=Begin the sorting of the page "Binding to do" by the most recent elements
ACCOUNTING_LIST_SORT_VENTILATION_DONE=Begin the sorting of the page "Binding done" by the most recent elements
Expand Down

0 comments on commit f915139

Please sign in to comment.