Fix: change for getJSON format

This commit is contained in:
Regis Houssin 2012-03-18 14:17:10 +01:00
parent 7f7ef8da1e
commit 5d33f687ae
2 changed files with 9 additions and 2 deletions

View File

@ -49,7 +49,13 @@ if (! empty($id) && ! empty($action) && ! empty($htmlname))
$soc->fetch($id);
echo $form->load_tva('tva_tx','',$soc,$mysoc,0,0,'',true);
$return=array();
$return['value'] = $form->load_tva('tva_tx','',$soc,$mysoc,0,0,'',true);
$return['num'] = $form->num;
$return['error'] = $form->error;
echo json_encode($return);
}
?>

View File

@ -3047,7 +3047,8 @@ class Form
{
$return.= $this->error;
}
$this->num = $num;
return $return;
}