From 9e71d491e611a9f09ba10f61adbbcbe5f33c2bf4 Mon Sep 17 00:00:00 2001 From: bagtaib Date: Mon, 22 Aug 2022 00:36:23 +0100 Subject: [PATCH] hook --- htdocs/partnership/class/partnership.class.php | 4 ++-- htdocs/public/partnership/new.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)) {