Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
c03baad319
@ -112,8 +112,11 @@ if ($action == "save" && empty($cancel)) {
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$wikihelp = 'EN:Module_Agenda_En|FR:Module_Agenda|ES:Módulo_Agenda';
|
// $wikihelp = 'EN:Module_Agenda_En|FR:Module_Agenda|ES:Módulo_Agenda';
|
||||||
llxHeader('', $langs->trans("AgendaSetup"), $wikihelp);
|
|
||||||
|
$help_url = 'EN:Module_Agenda_En|FR:Module_Agenda|ES:Módulo_Agenda';
|
||||||
|
|
||||||
|
llxHeader('', $langs->trans("AgendaSetup"), $help_url);
|
||||||
|
|
||||||
$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
|
$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
|
||||||
print load_fiche_titre($langs->trans("AgendaSetup"), $linkback, 'title_setup');
|
print load_fiche_titre($langs->trans("AgendaSetup"), $linkback, 'title_setup');
|
||||||
|
|||||||
@ -78,7 +78,7 @@ if ($action == 'addcontact' && $permissiontoedit) {
|
|||||||
if ($object->fetch($id)) {
|
if ($object->fetch($id)) {
|
||||||
$result = $object->swapContactStatus(GETPOST('ligne', 'int'));
|
$result = $object->swapContactStatus(GETPOST('ligne', 'int'));
|
||||||
} else {
|
} else {
|
||||||
dol_print_error($db);
|
setEventMessages($object->error, $object->errors, 'errors');
|
||||||
}
|
}
|
||||||
} elseif ($action == 'deletecontact' && $permissiontoedit) {
|
} elseif ($action == 'deletecontact' && $permissiontoedit) {
|
||||||
// Deleting a contact
|
// Deleting a contact
|
||||||
@ -89,7 +89,7 @@ if ($action == 'addcontact' && $permissiontoedit) {
|
|||||||
header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
|
header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
dol_print_error($db);
|
setEventMessages($object->error, $object->errors, 'errors');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user