@@ -88,6 +88,10 @@ if ($action == 'builddoc' && $permissioncreate)
setEventMessages($object->error, $object->errors, 'errors');
$action='';
}
+ else
+ {
+ setEventMessages($langs->trans("FileGenerated"), null);
+ }
@@ -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)
@@ -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);