From 5e00fb8fc72fa43a642acfe6b0151623ea0c20b4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 14 Oct 2016 17:56:22 +0200 Subject: [PATCH] Fix sepa mandate translation --- htdocs/core/actions_builddoc.inc.php | 4 ++++ htdocs/langs/en_US/main.lang | 1 + htdocs/societe/rib.php | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/core/actions_builddoc.inc.php b/htdocs/core/actions_builddoc.inc.php index 15dc5d060b0..5984283b996 100644 --- a/htdocs/core/actions_builddoc.inc.php +++ b/htdocs/core/actions_builddoc.inc.php @@ -88,6 +88,10 @@ if ($action == 'builddoc' && $permissioncreate) setEventMessages($object->error, $object->errors, 'errors'); $action=''; } + else + { + setEventMessages($langs->trans("FileGenerated"), null); + } } } diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index 0074d8d4792..14aa36756b8 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -70,6 +70,7 @@ SeeHere=See here BackgroundColorByDefault=Default background color FileRenamed=The file was successfully renamed FileUploaded=The file was successfully uploaded +FileGenerated=The file was successfully generated FileWasNotUploaded=A file is selected for attachment but was not yet uploaded. Click on "Attach file" for this. NbOfEntries=Nb of entries GoToWikiHelpPage=Read online help (Internet access needed) diff --git a/htdocs/societe/rib.php b/htdocs/societe/rib.php index 71bf91feb7e..1d8e9348f72 100644 --- a/htdocs/societe/rib.php +++ b/htdocs/societe/rib.php @@ -45,7 +45,7 @@ $result = restrictedArea($user, 'societe','',''); $id=GETPOST("id","int"); $ribid=GETPOST("ribid","int"); -$action=GETPOST("action"); +$action=GETPOST("action", 'alpha', 3); $object = new Societe($db); $object->fetch($socid);