HOR-937 "PHP Notice: when you save a process classic" SOLVED
Issue:
PHP Notice: when you save a process classic
Cause:
La funcion array_diff_assoc solo hace la comparacion con arrays unidimensionales
Solution:
Se elimina el campo PRO_DYNAFORMS, el mismo no es utilizado/requerido en el script
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
$function = isset( $_POST['function'] ) ? $_POST['function'] : '';
|
||||
$infoProcess = new Process();
|
||||
$resultProcessOld = $infoProcess->load($_POST['form']['PRO_UID']);
|
||||
unset($resultProcessOld['PRO_DYNAFORMS']);
|
||||
|
||||
switch ($function) {
|
||||
case 'lookForNameProcess':
|
||||
require_once 'classes/model/Content.php';
|
||||
@@ -93,8 +95,10 @@ switch ($function) {
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
$resultProcessNew = $infoProcess->load($_POST['form']['PRO_UID']);
|
||||
$oldFields = array_diff_assoc($resultProcessOld,$resultProcessNew);
|
||||
unset($resultProcessNew['PRO_DYNAFORMS']);
|
||||
|
||||
$newFields = array_diff_assoc($resultProcessNew,$resultProcessOld);
|
||||
$fields = array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user