Debug v17
This commit is contained in:
parent
f740a039f7
commit
e26e8ac85b
@ -550,13 +550,11 @@ class Partnership extends CommonObject
|
||||
*/
|
||||
public function update(User $user, $notrigger = false)
|
||||
{
|
||||
global $user;
|
||||
|
||||
if ($this->fk_soc <= 0 && $this->fk_member <= 0) {
|
||||
$this->error[] = "ErrorThirpdartyOrMemberidIsMandatory";
|
||||
return -1;
|
||||
}
|
||||
if (empty($this->fk_user_creat)) { // Fot the case the object was created with empty user.
|
||||
if (empty($this->fk_user_creat)) { // For the case the object was created with empty user (from public page).
|
||||
$this->fk_user_creat = $user->id;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user