Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

This commit is contained in:
Laurent Destailleur
2018-06-04 12:56:12 +02:00
3 changed files with 9 additions and 2 deletions

View File

@@ -119,9 +119,15 @@ class MouvementStock extends CommonObject
// Set properties of movement
$this->product_id = $fk_product;
$this->entrepot_id = $entrepot_id;
$this->entrepot_id = $entrepot_id; // deprecated
$this->warehouse_id = $entrepot_id;
$this->qty = $qty;
$this->type = $type;
$this->price = $price;
$this->label = $label;
$this->inventorycode = $inventorycode;
$this->datem = $now;
$this->batch = $batch;
$mvid = 0;

View File

@@ -711,7 +711,7 @@ if (empty($reshook))
// Logo/Photo save
$dir = $conf->societe->multidir_output[$object->entity]."/".$object->id."/logos";
$file_OK = is_uploaded_file($_FILES['photo']['tmp_name']);
if (GETPOST('deletephoto') && $object->photo)
if (GETPOST('deletephoto') && $object->logo)
{
$fileimg=$dir.'/'.$object->logo;
$dirthumbs=$dir.'/thumbs';