mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Merge pull request #1368 from csalvador/webservices-debug
fixed wrong thumbnails directory
This commit is contained in:
@@ -2946,7 +2946,7 @@ class Product extends CommonObject
|
||||
// Objet
|
||||
$obj=array();
|
||||
$obj['photo']=$photo;
|
||||
if ($photo_vignette && dol_is_file($dirthumb.$photo_vignette)) $obj['photo_vignette']=$dirthumb . $photo_vignette;
|
||||
if ($photo_vignette && dol_is_file($dirthumb.$photo_vignette)) $obj['photo_vignette']='thumbs/' . $photo_vignette;
|
||||
else $obj['photo_vignette']="";
|
||||
|
||||
$tabobj[$nbphoto-1]=$obj;
|
||||
|
||||
@@ -306,6 +306,12 @@ class Societe extends CommonObject
|
||||
$contact->socid = $this->id; // fk_soc
|
||||
$contact->statut = 1;
|
||||
$contact->priv = 0;
|
||||
$contact->country_id = $this->country_id;
|
||||
$contact->address = $this->address;
|
||||
$contact->email = $this->email;
|
||||
$contact->zip = $this->zip;
|
||||
$contact->town = $this->town;
|
||||
$contact->phone_pro = $this->phone;
|
||||
$result = $contact->create($user);
|
||||
if ($result < 0) {
|
||||
$this->error = $contact->error;
|
||||
|
||||
Reference in New Issue
Block a user