';
print '
'; // ancre
diff --git a/htdocs/holiday/document.php b/htdocs/holiday/document.php
index 7dc086a113f..6986d75d630 100644
--- a/htdocs/holiday/document.php
+++ b/htdocs/holiday/document.php
@@ -137,8 +137,7 @@ include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
$form = new Form($db);
$listhalfday = array('morning'=>$langs->trans("Morning"), "afternoon"=>$langs->trans("Afternoon"));
-
-$title = $langs->trans('InterventionCard');
+$title = $langs->trans("Leave").' - '.$langs->trans("Files");
llxHeader('', $title);
@@ -347,12 +346,12 @@ if ($object->id) {
print dol_get_fiche_end();
-
-
- $modulepart = 'holiday';
$permissiontoadd = $user->rights->holiday->write;
$permtoedit = $user->rights->holiday->write;
$param = '&id='.$object->id;
+ $relativepathwithnofile = $modulepart.'/'.dol_sanitizeFileName($object->ref).'/';
+ $savingdocmask = dol_sanitizeFileName($object->ref).'-__file__';
+
include DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
} else {
print $langs->trans("ErrorUnknown");
diff --git a/htdocs/holiday/info.php b/htdocs/holiday/info.php
index 3ec95e61a52..5df3a5069de 100644
--- a/htdocs/holiday/info.php
+++ b/htdocs/holiday/info.php
@@ -78,7 +78,7 @@ $result = restrictedArea($user, 'holiday', $object->id, 'holiday');
$form = new Form($db);
-$title = $langs->trans("Holiday")." - ".$langs->trans("Info");
+$title = $langs->trans("Leave")." - ".$langs->trans("Info");
$helpurl = "";
llxHeader("", $title, $helpurl);
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index d9099f567fa..508d56a46c5 100644
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -961,6 +961,14 @@ Permission4001=See employees
Permission4002=Create employees
Permission4003=Delete employees
Permission4004=Export employees
+Permission4010=Read skill/job/position
+Permission4011=Create/modify skill/job/position
+Permission4012=Delete skill/job/position
+Permission4020=Read evaluation
+Permission4021=Create/modify evaluation
+Permission4022=Validate evaluation
+Permission4023=Delete evaluation
+Permission4030=See comparison menu
Permission10001=Read website content
Permission10002=Create/modify website content (html and javascript content)
Permission10003=Create/modify website content (dynamic php code). Dangerous, must be reserved to restricted developers.
diff --git a/htdocs/langs/en_US/companies.lang b/htdocs/langs/en_US/companies.lang
index 7deee6a9d55..616619adb92 100644
--- a/htdocs/langs/en_US/companies.lang
+++ b/htdocs/langs/en_US/companies.lang
@@ -271,6 +271,12 @@ ProfId3RU=Prof Id 3 (KPP)
ProfId4RU=Prof Id 4 (OKPO)
ProfId5RU=-
ProfId6RU=-
+ProfId1UA=Prof Id 1 (EDRPOU)
+ProfId2UA=Prof Id 2 (DRFO)
+ProfId3UA=Prof Id 3 (INN)
+ProfId4UA=Prof Id 4 (Certificate)
+ProfId5UA=Prof Id 5 (RNOKPP)
+ProfId6UA=Prof Id 6 (TRDPAU)
ProfId1DZ=RC
ProfId2DZ=Art.
ProfId3DZ=NIF
diff --git a/htdocs/langs/en_US/hrm.lang b/htdocs/langs/en_US/hrm.lang
index 430124cecba..8724bb805a6 100644
--- a/htdocs/langs/en_US/hrm.lang
+++ b/htdocs/langs/en_US/hrm.lang
@@ -19,12 +19,9 @@ Employees=Employees
Employee=Employee
NewEmployee=New employee
ListOfEmployees=List of employees
-HrmSetup = Hrm setup
-HrmSetupPage = Hrm setup page
+HrmSetup=HRM module setup
HRM_MAXRANK=Maximum rank for a skill
HRM_DEFAULT_SKILL_DESCRIPTION=Default description of ranks when skill is created
-HrmAbout = About Hrm
-traduction_note=Translate
deplacement=Shift
DateEval=Evaluation date
JobCard=Job card
@@ -82,11 +79,3 @@ NoEval=No evaluation done for this employee
HowManyUserWithThisMaxNote=Number of users with this rank
HighestRank=Highest rank
SkillComparison=Skill comparison
-ReadSkillJobPosition=Read skills / jobs / positions
-CreateUpdateSkillJobPosition=Create / update skills / jobs / positions
-DeleteSkillJobPosition=Delete skills / jobs / positions
-ReadEval=Read evaluations
-CreateUpdateEval=Create / update evaluations
-ValidateEval=Validate evaluations
-DeleteEval=Delete evaluations
-SeeComparisonMenu=Access skills comparison menu
diff --git a/htdocs/takepos/index.php b/htdocs/takepos/index.php
index 2c4da0515f1..8271103cfb6 100644
--- a/htdocs/takepos/index.php
+++ b/htdocs/takepos/index.php
@@ -1121,14 +1121,24 @@ if ($resql) {
}
$hookmanager->initHooks(array('takeposfrontend'));
-$reshook = $hookmanager->executeHooks('ActionButtons');
-if (!empty($reshook)) {
- if (is_array($reshook) && !isset($reshook['title'])) {
- foreach ($reshook as $reshook) {
- $menus[$r++] = $reshook;
+$parameters = array('menus'=>$menus);
+$reshook = $hookmanager->executeHooks('ActionButtons', $parameters);
+if ($reshook == 0) { //add buttons
+ if (is_array($hookmanager->resArray) ) {
+ foreach ($hookmanager->resArray as $resArray) {
+ foreach ($resArray as $butmenu) {
+ $menus[$r++] = $butmenu;
+ }
+ }
+ } elseif ($reshook == 1) {
+ $r = 0; //replace buttons
+ if (is_array($hookmanager->resArray) ) {
+ foreach ($hookmanager->resArray as $resArray) {
+ foreach ($resArray as $butmenu) {
+ $menus[$r++] = $butmenu;
+ }
+ }
}
- } else {
- $menus[$r++] = $reshook;
}
}
diff --git a/test/phpunit/SecurityTest.php b/test/phpunit/SecurityTest.php
index 81eff830b49..fe091b0fe47 100644
--- a/test/phpunit/SecurityTest.php
+++ b/test/phpunit/SecurityTest.php
@@ -874,6 +874,10 @@ class SecurityTest extends PHPUnit\Framework\TestCase
print "result = ".$result."\n";
$this->assertContains('Bad string syntax to evaluate', $result);
+ $result=dol_eval('$a=exec ("ls")', 1, 1);
+ print "result = ".$result."\n";
+ $this->assertContains('Bad string syntax to evaluate', $result);
+
$result=dol_eval('$a="test"; $$a;', 1, 0);
print "result = ".$result."\n";
$this->assertContains('Bad string syntax to evaluate', $result);