commit
44f81ef242
@ -11,7 +11,7 @@
|
||||
* Copyright (C) 2011-2016 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
||||
* Copyright (C) 2015 Ferran Marcet <fmarcet@2byte.es>
|
||||
* Copyright (C) 2016 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
||||
* Copyright (C) 2018-2020 Frédéric France <frederic.france@netlogic.fr>
|
||||
* Copyright (C) 2018-2021 Frédéric France <frederic.france@netlogic.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -339,7 +339,7 @@ if (empty($reshook)) {
|
||||
$sql = "INSERT INTO ".$tabname[$id]." (";
|
||||
// List of fields
|
||||
$sql .= $tabfieldinsert[$id];
|
||||
$sql .= ", active, enabled)";
|
||||
$sql .= ", active, enabled)";
|
||||
$sql .= " VALUES(";
|
||||
|
||||
// List of values
|
||||
|
||||
@ -1693,8 +1693,7 @@ class Account extends CommonObject
|
||||
{
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."bank_url SET url_id = ".((int) $dest_id)." WHERE url_id = ".((int) $origin_id)." AND type='company'";
|
||||
|
||||
if (!$db->query($sql))
|
||||
{
|
||||
if (!$db->query($sql)) {
|
||||
//if ($ignoreerrors) return true; // TODO Not enough. If there is A-B on kept thirdarty and B-C on old one, we must get A-B-C after merge. Not A-B.
|
||||
//$this->errors = $db->lasterror();
|
||||
return false;
|
||||
|
||||
@ -119,6 +119,10 @@ class Partnership extends CommonObject
|
||||
public $date_partnership_end;
|
||||
public $count_last_url_check_error;
|
||||
public $last_check_backlink;
|
||||
|
||||
/**
|
||||
* @var string reason_decline_or_cancel
|
||||
*/
|
||||
public $reason_decline_or_cancel;
|
||||
// END MODULEBUILDER PROPERTIES
|
||||
|
||||
@ -848,9 +852,10 @@ class Partnership extends CommonObject
|
||||
/**
|
||||
* Set refused status
|
||||
*
|
||||
* @param User $user Object user that modify
|
||||
* @param int $notrigger 1=Does not execute triggers, 0=Execute triggers
|
||||
* @return int <0 if KO, 0=Nothing done, >0 if OK
|
||||
* @param User $user Object user that modify
|
||||
* @param string $reasondeclinenote Reason decline
|
||||
* @param int $notrigger 1=Does not execute triggers, 0=Execute triggers
|
||||
* @return int <0 if KO, 0=Nothing done, >0 if OK
|
||||
*/
|
||||
public function refused($user, $reasondeclinenote = '', $notrigger = 0)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user