Fix var_dump
This commit is contained in:
parent
9a811415ae
commit
f1e6ac522d
@ -145,9 +145,8 @@ if ($action == 'create' && GETPOST("accountid", "int") > 0 && $user->rights->ban
|
|||||||
if (GETPOSTISARRAY('toRemise')) {
|
if (GETPOSTISARRAY('toRemise')) {
|
||||||
$object->type = $type;
|
$object->type = $type;
|
||||||
$arrayofid = GETPOST('toRemise', 'array:int');
|
$arrayofid = GETPOST('toRemise', 'array:int');
|
||||||
var_dump($arrayofid);
|
|
||||||
|
|
||||||
$result = $object->create($user, GETPOST("accountid", "int"), 0, GETPOST('toRemise', 'array:int'));
|
$result = $object->create($user, GETPOST("accountid", "int"), 0, $arrayofid);
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
if ($object->statut == 1) { // If statut is validated, we build doc
|
if ($object->statut == 1) { // If statut is validated, we build doc
|
||||||
$object->fetch($object->id); // To force to reload all properties in correct property name
|
$object->fetch($object->id); // To force to reload all properties in correct property name
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user