Fix position of clone
This commit is contained in:
parent
738fa35471
commit
0f1447cf05
@ -219,7 +219,7 @@ Nouveauté=Novelty
|
||||
AchatTelechargement=Buy / Download
|
||||
GoModuleSetupArea=To deploy/install a new module, go to the Module setup area: <a href="%s">%s</a>.
|
||||
DoliStoreDesc=DoliStore, the official market place for Dolibarr ERP/CRM external modules
|
||||
DoliPartnersDesc=List of companies providing custom-developed modules or features.<br>Note: since Dolibarr is an open source application, <i>anyone</i> experienced in PHP programming may develop a module.
|
||||
DoliPartnersDesc=List of companies providing custom-developed modules or features.<br>Note: since Dolibarr is an open source application, <i>anyone</i> experienced in PHP programming should be able to develop a module.
|
||||
WebSiteDesc=External websites for more add-on (non-core) modules...
|
||||
DevelopYourModuleDesc=Some solutions to develop your own module...
|
||||
URL=URL
|
||||
|
||||
@ -111,6 +111,11 @@ class Website extends CommonObject
|
||||
*/
|
||||
public $use_manifest;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $position;
|
||||
|
||||
/**
|
||||
* List of containers
|
||||
*
|
||||
@ -201,6 +206,7 @@ class Website extends CommonObject
|
||||
$sql .= 'virtualhost,';
|
||||
$sql .= 'fk_user_creat,';
|
||||
$sql .= 'date_creation,';
|
||||
$sql .= 'position,';
|
||||
$sql .= 'tms';
|
||||
$sql .= ') VALUES (';
|
||||
$sql .= ' '.((empty($this->entity) && $this->entity != '0') ? 'NULL' : $this->entity).',';
|
||||
@ -213,6 +219,7 @@ class Website extends CommonObject
|
||||
$sql .= ' '.(!isset($this->virtualhost) ? 'NULL' : "'".$this->db->escape($this->virtualhost)."'").",";
|
||||
$sql .= ' '.(!isset($this->fk_user_creat) ? $user->id : $this->fk_user_creat).',';
|
||||
$sql .= ' '.(!isset($this->date_creation) || dol_strlen($this->date_creation) == 0 ? 'NULL' : "'".$this->db->idate($this->date_creation)."'").",";
|
||||
$sql .= ' '.((int) $this->position).",";
|
||||
$sql .= ' '.(!isset($this->date_modification) || dol_strlen($this->date_modification) == 0 ? 'NULL' : "'".$this->db->idate($this->date_modification)."'");
|
||||
$sql .= ')';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user