Merged in jennydmz/processmaker/BUG-14953 (pull request #722)
BUG-14953 WEBENTRY - ProcessMaker does not check if Javascript is running.
This commit is contained in:
@@ -225,6 +225,12 @@ class headPublisher
|
|||||||
}
|
}
|
||||||
|
|
||||||
$head = $head . "
|
$head = $head . "
|
||||||
|
<noscript>
|
||||||
|
<div>
|
||||||
|
". G::LoadTranslation( 'ID_ERROR_JS_NOT_AVAILABLE' )."
|
||||||
|
</div>
|
||||||
|
</noscript>
|
||||||
|
|
||||||
<script type=\"text/javascript\">
|
<script type=\"text/javascript\">
|
||||||
var BROWSER_CACHE_FILES_UID = \"" . G::browserCacheFilesGetUid() . "\";
|
var BROWSER_CACHE_FILES_UID = \"" . G::browserCacheFilesGetUid() . "\";
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -72,9 +72,15 @@
|
|||||||
$previouspage = $_POST['previous_step']['PAGE'];
|
$previouspage = $_POST['previous_step']['PAGE'];
|
||||||
|
|
||||||
$html .= '</td></tr><tr><td align="center">';
|
$html .= '</td></tr><tr><td align="center">';
|
||||||
$html .= '<input type="button" value="Back" class="module_app_button___gray" onclick="javascript:history.back()">';
|
if($netxpage == ""){
|
||||||
$html .= '<input type="button" value="Continue" class="module_app_button___gray" onclick="javascript:location.href=\''.$netxpage.'\'">';
|
$html .= '<a href='.$previouspage.'>';
|
||||||
|
$html .= '<input type="button" value="Back" class="module_app_button___gray" />';
|
||||||
|
$html .= '</a>';
|
||||||
|
} else{
|
||||||
|
$html .= '<input type="button" value="Back" class="module_app_button___gray" onclick="javascript:history.back()">';
|
||||||
|
$html .= '<input type="button" value="Continue" class="module_app_button___gray" onclick="javascript:location.href=\''.$netxpage.'\'">';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="grid" style="width:'.$width_content.'">
|
echo '<div class="grid" style="width:'.$width_content.'">
|
||||||
<div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
<div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
||||||
|
|||||||
@@ -137,6 +137,30 @@ try {
|
|||||||
* you can change it or redirect to another page
|
* you can change it or redirect to another page
|
||||||
* i.e. G::header("Location: http://www.processmaker.com");
|
* i.e. G::header("Location: http://www.processmaker.com");
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$_POST['__notValidateThisFields__'] = (isset( $_POST['__notValidateThisFields__'] ) && $_POST['__notValidateThisFields__'] != '') ? $_POST['__notValidateThisFields__'] : $_POST['DynaformRequiredFields'];
|
||||||
|
if ($missing_req_values = $oForm->validateRequiredFields( $_POST['form'], Bootstrap::json_decode( stripslashes( $_POST['__notValidateThisFields__'] ) ) )) {
|
||||||
|
$fieldsRequired = Bootstrap::json_decode(str_replace(array("%27", "%39"), array("\"", "'"), $_POST["DynaformRequiredFields"]));
|
||||||
|
|
||||||
|
foreach ($fieldsRequired as $key1 => $value1) {
|
||||||
|
foreach ($missing_req_values as $key2 => $value2) {
|
||||||
|
if ($value1->name == $value2) {
|
||||||
|
$missing_req_values[$key2] = $value1->label;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$_POST['next_step']['PAGE'] = "";
|
||||||
|
$_POST['previous_step']['PAGE'] = $_SERVER['HTTP_REFERER'];
|
||||||
|
$_POST['req_val'] = $missing_req_values;
|
||||||
|
|
||||||
|
global $G_PUBLISH;
|
||||||
|
$G_PUBLISH = new Publisher();
|
||||||
|
$G_PUBLISH->AddContent( 'view', 'cases/missRequiredFields' );
|
||||||
|
G::RenderPage( 'publish', 'blank' );
|
||||||
|
exit( 0 );
|
||||||
|
}
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
$G_PUBLISH->AddContent("xmlform", "xmlform", "login/showInfo", "", $aMessage);
|
$G_PUBLISH->AddContent("xmlform", "xmlform", "login/showInfo", "", $aMessage);
|
||||||
G::RenderPage("publish", "blank");
|
G::RenderPage("publish", "blank");
|
||||||
|
|||||||
Reference in New Issue
Block a user