Skip to content

Commit

Permalink
Merge branch '8.0' of git@github.com:Dolibarr/dolibarr.git into 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 23, 2019
2 parents cdb730c + 76d2314 commit 36e6036
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions htdocs/expedition/class/expedition.class.php
Expand Up @@ -1984,6 +1984,12 @@ function setClosed()

$error=0;

// Protection. This avoid to move stock later when we should not
if ($this->statut == self::STATUS_CLOSED)
{
return 0;
}

$this->db->begin();

$sql = 'UPDATE '.MAIN_DB_PREFIX.'expedition SET fk_statut='.self::STATUS_CLOSED;
Expand Down
2 changes: 1 addition & 1 deletion htdocs/install/mysql/migration/6.0.0-7.0.0.sql
Expand Up @@ -285,7 +285,7 @@ CREATE TABLE llx_website_account(
date_last_login datetime,
date_previous_login datetime,
date_creation datetime NOT NULL,
tms timestamp NOT NULL,
tms timestamp,
fk_user_creat integer NOT NULL,
fk_user_modif integer,
import_key varchar(14),
Expand Down

0 comments on commit 36e6036

Please sign in to comment.