I've experienced something new I don't understand at all :
I've a form in which I've a breadcrum, something like this :
SELECT 'Form no. : #RECORD_ID#'
I've written some code in the Before Save section,
......
// Si type = Projet, il faut un code projet
if ($nuHash[$arr[$idx].'F_TYPE'] == 'Projet'){
if ($nuHash[$arr[$idx].'F_PROJ'] == '') {
$Message .= 'Code Nature manquant ligne '.$idx.' ';
}
}
}
// Si on a une erreur ...
if ($Message != ''){
nuDisplayError($Message);
return;
}
....
While executing I get a message like Json parse failed.
Just adding a comment mark // before the nuDisplayError instruction prevents the Json message from coming (and of course my error message), deleting the BreadCrum and restoring the nuDisplayError also prevent the Json message from displaying, I get my error messag

I get the following lines in the php_error.log :
[24-Feb-2015 16:33:46 Europe/Paris] PHP Warning: Invalid argument supplied for foreach() in C:\wamp25\www\TMS\nuapi.php on line 1534
[24-Feb-2015 16:33:46 Europe/Paris] PHP Stack trace:
[24-Feb-2015 16:33:46 Europe/Paris] PHP 1. {main}() C:\wamp25\www\TMS\nuapi.php:0
[24-Feb-2015 16:33:46 Europe/Paris] PHP 2. nuGetEditForm() C:\wamp25\www\TMS\nuapi.php:140
[24-Feb-2015 16:33:46 Europe/Paris] PHP 3. nuGetBreadcrumb() C:\wamp25\www\TMS\nuapi.php:1491
Hope it'll help you.
Kind Regards,