Make sure the organization for a delegator is not inserted as NULL in the database query adding the identity to the delegatee, as the database definition for the field is NOT NULL
This commit is contained in:
parent
0792829c3b
commit
41407069d1
1 changed files with 2 additions and 1 deletions
|
@ -623,7 +623,8 @@ class kolab_delegation_engine
|
|||
// @TODO: "Delegatorname" or "Username on behalf of Delegatorname"?
|
||||
$default['name'] = $delegator['realname'];
|
||||
$default['email'] = $email;
|
||||
$default['organization'] = $delegator['organization'];
|
||||
// Database field for organization is NOT NULL
|
||||
$default['organization'] = empty($delegator['organization']) ? '' : $delegator['organization'];
|
||||
$this->rc->user->insert_identity($default);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue