Fix: change for getJSON format
This commit is contained in:
parent
7f7ef8da1e
commit
5d33f687ae
@ -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);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@ -3047,7 +3047,8 @@ class Form
|
||||
{
|
||||
$return.= $this->error;
|
||||
}
|
||||
|
||||
|
||||
$this->num = $num;
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user