Changing deprecated json->decode json->encode by Bootstrap functions.

This commit is contained in:
ralph
2012-11-29 14:25:06 -04:00
parent 5c89c9d499
commit 2df7ff709a
18 changed files with 93 additions and 94 deletions

View File

@@ -64,14 +64,14 @@ if (($RBAC_Response = $RBAC->userCanAccess( "PM_FACTORY" )) != 1) {
// the script responds an ajax request in order to check the dependent fields,
// and generate a json output of the values that the dependent field must have.
$sDynUid = G::getUIDName( urlDecode( $_POST['DYN_UID'] ) );
$json = new Services_JSON();
$formValues = ($json->decode( $_POST['fields'] ));
//$json = new Services_JSON();
$formValues = (Bootstrap::json_decode( $_POST['fields'] ));
$sFieldName = $_POST['fieldName'];
$sMasterField = '';
$sPath = PATH_DYNAFORM;
$G_FORM = new form( $sDynUid, $sPath );
$aux = array ();
$newValues = $json->decode( urlDecode( stripslashes( $_POST['form'] ) ) );
$newValues = Bootstrap::json_decode( urlDecode( stripslashes( $_POST['form'] ) ) );
if (isset( $_POST['grid'] )) {
$_POST['row'] = (int) $_POST['row'];