diff --git a/apps/maarch_entreprise/actions/index_mlb.php b/apps/maarch_entreprise/actions/index_mlb.php index 29c0aed4c649a56593adf3b94222a9d7a1a6ba31..493b519626798bfcddc08fb58d172362b77ccbcd 100755 --- a/apps/maarch_entreprise/actions/index_mlb.php +++ b/apps/maarch_entreprise/actions/index_mlb.php @@ -1021,7 +1021,7 @@ function check_form($formId, $values) $_SESSION['upfile']['error']='0'; $_SESSION['upfile']['format']='maarch'; } elseif (empty($_SESSION['upfile']['format'])) { - $_SESSION['action_error'] = _FILE . ' ' . _MANDATORY; + $_SESSION['action_error'] = _FILE . ' ' . strtolower(_MANDATORY); return false; } @@ -1273,7 +1273,7 @@ function process_category_check($catId, $values) if ($priority === '') { $_SESSION['action_error'] = $_ENV['categories'][$catId]['priority']['label'] - . " " . _MANDATORY; + . " " . strtolower(_MANDATORY); return false; } } @@ -1289,7 +1289,7 @@ function process_category_check($catId, $values) } if (! $contactType) { $_SESSION['action_error'] = $_ENV['categories'][$catId]['other_cases']['type_contact']['label'] - . " " . _MANDATORY; + . " " . strtolower(_MANDATORY); return false; } $contact = get_value_fields($values, 'contactid'); @@ -1322,7 +1322,7 @@ function process_category_check($catId, $values) || ! isset($_SESSION['indexing']['diff_list']['dest']['users'][0]) ) { $_SESSION['action_error'] = $_ENV['categories'][$catId]['other_cases']['diff_list']['label'] - . " " . _MANDATORY; + . " " . strtolower(_MANDATORY); return false; } } diff --git a/apps/maarch_entreprise/actions/validate_mail.php b/apps/maarch_entreprise/actions/validate_mail.php index 360eb8e185d089cb1c7524e2c9f4af7c84c77a42..283227c42fd262852b6816e43c9f6c39e6d2fc4b 100755 --- a/apps/maarch_entreprise/actions/validate_mail.php +++ b/apps/maarch_entreprise/actions/validate_mail.php @@ -1490,7 +1490,7 @@ function process_category_check($cat_id, $values) $priority = get_value_fields($values, 'priority'); if ($priority === '') { - $_SESSION['action_error'] = $_ENV['categories'][$cat_id]['priority']['label']. " " . _MANDATORY; + $_SESSION['action_error'] = $_ENV['categories'][$cat_id]['priority']['label']. " " . strtolower(_MANDATORY); return false; } } @@ -1509,7 +1509,7 @@ function process_category_check($cat_id, $values) $contact_type = get_value_fields($values, 'type_multi_contact_external'); } if(!$contact_type){ - $_SESSION['action_error'] = $_ENV['categories'][$cat_id]['other_cases']['type_contact']['label'] . " " . _MANDATORY . ""; + $_SESSION['action_error'] = $_ENV['categories'][$cat_id]['other_cases']['type_contact']['label'] . " " . strtolower(_MANDATORY) . ""; return false; } @@ -1540,7 +1540,7 @@ function process_category_check($cat_id, $values) { if(empty($_SESSION['indexing']['diff_list']['dest']['users'][0]['user_id']) || !isset($_SESSION['indexing']['diff_list']['dest']['users'][0]['user_id'])) { - $_SESSION['action_error'] = $_ENV['categories'][$cat_id]['other_cases']['diff_list']['label']." "._MANDATORY.""; + $_SESSION['action_error'] = $_ENV['categories'][$cat_id]['other_cases']['diff_list']['label']." ".strtolower(_MANDATORY).""; return false; } }