Fix: dol_htmloutput_events() already loaded in footer
This commit is contained in:
parent
edbfd7d4f8
commit
71a4a2b7f9
@ -48,8 +48,6 @@ $fieldid = isset($_GET["ref"])?'ref':'rowid';
|
||||
if ($user->societe_id) $socid=$user->societe_id;
|
||||
$result=restrictedArea($user,'produit&stock',$id,'product&product','','',$fieldid);
|
||||
|
||||
$mesg = '';
|
||||
|
||||
|
||||
/*
|
||||
* Actions
|
||||
@ -65,9 +63,7 @@ if ($action == 'setstocklimit')
|
||||
$product->seuil_stock_alerte=$stocklimit;
|
||||
$result=$product->update($product->id,$user,1,0,1);
|
||||
if ($result < 0)
|
||||
{
|
||||
$mesg=join(',',$product->errors);
|
||||
}
|
||||
setEventMessage($product->errors, 'errors');
|
||||
$action='';
|
||||
}
|
||||
|
||||
@ -177,7 +173,7 @@ if ($action == "transfert_stock" && ! $cancel)
|
||||
}
|
||||
else
|
||||
{
|
||||
$mesg=$product->error;
|
||||
setEventMessage($product->error, 'errors');
|
||||
$db->rollback();
|
||||
}
|
||||
}
|
||||
@ -211,9 +207,6 @@ if ($id > 0 || $ref)
|
||||
|
||||
$form = new Form($db);
|
||||
|
||||
if ($mesg) print($mesg);
|
||||
dol_htmloutput_events();
|
||||
|
||||
print '<table class="border" width="100%">';
|
||||
|
||||
// Ref
|
||||
|
||||
Loading…
Reference in New Issue
Block a user