Skip to content
Snippets Groups Projects
Commit 67a9cda3 authored by Damien's avatar Damien
Browse files

FIX #3104 Improve error messages

parent 363d3143
No related branches found
No related tags found
No related merge requests found
......@@ -286,10 +286,9 @@ else if(empty($_POST['values']) || !isset($_POST['action_id']) || empty($_POST['
}
elseif( $_POST['req'] == 'first_request' && $error_visa_response_project == true)
{
if ($visa->fileNameNotConverted)
echo "{status : 4, error : '" . addslashes(_NO_CONVERTED_PDF_VISA) . $visa->fileNameNotConverted . "', validate : 'OK', 'action_status' : '".functions::xssafe($status)."'}";
else
echo "{status : 4, error : '".addslashes(_NO_RESPONSE_PROJECT_VISA)."', validate : 'OK', 'action_status' : '".functions::xssafe($status)."'}";
echo "{status : 3, form_content : '<div class=\"h2_title\">" . $visa->errorMessageVisa .
"</div><p class=\"buttons\"><input type=\"button\" onclick=\"destroyModal(\'" . $modalId . "\')\" class=\"button\" value=\"OK\" id=\"submit\" name=\"submit\"></p>',
height : 'auto', width : 'auto', 'mode_frm' : '', validate : 'OK', 'action_status' : '".functions::xssafe($status)."'}";
exit();
}
elseif( $_POST['req'] == 'first_request' && $error_visa_workflow == true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment