diff --git a/htdocs/partnership/class/partnership.class.php b/htdocs/partnership/class/partnership.class.php index 0783f330843..05d37ac9ee1 100644 --- a/htdocs/partnership/class/partnership.class.php +++ b/htdocs/partnership/class/partnership.class.php @@ -261,11 +261,11 @@ class Partnership extends CommonObject if (!$this->date_creation) { $this->date_creation = $now; } - + $this->db->begin(); - // Insert partnership + // Insert partnership $sql = "INSERT INTO ".MAIN_DB_PREFIX."partnership"; $sql .= " (ref, date_creation,fk_user_creat,fk_user_modif,fk_type,entity,import_key)"; $sql .= " VALUES ("; diff --git a/htdocs/public/partnership/new.php b/htdocs/public/partnership/new.php index 38660fbcdfd..1c3e945b375 100644 --- a/htdocs/public/partnership/new.php +++ b/htdocs/public/partnership/new.php @@ -346,7 +346,7 @@ if (empty($reshook) && $action == 'add') { }*/ // test if societe or email already exist - + if (!empty($backtopage)) {