|
@@ -54,12 +54,14 @@ function zimbraSingle_ChangePassword($params)
|
|
|
if (defined('CLIENTAREA')) {
|
|
if (defined('CLIENTAREA')) {
|
|
|
$params['customfields']['password'] = $params['password'];
|
|
$params['customfields']['password'] = $params['password'];
|
|
|
$params['customfields']['pwrepeat'] = $params['password'];
|
|
$params['customfields']['pwrepeat'] = $params['password'];
|
|
|
- $customFieldIDsObj = Capsule::table('tblcustomfields')
|
|
|
|
|
|
|
+ $customFieldIDsCol = Capsule::table('tblcustomfields')
|
|
|
->select('id')
|
|
->select('id')
|
|
|
->where('relid', '=', $params['pid'])
|
|
->where('relid', '=', $params['pid'])
|
|
|
->where('fieldtype', '=', 'password')
|
|
->where('fieldtype', '=', 'password')
|
|
|
->get();
|
|
->get();
|
|
|
- $customFieldIDs = recursiveFindAll( $customFieldIDsObj, 'id');
|
|
|
|
|
|
|
+ $customFieldIDsObj = $customFieldIDsCol->to_array();
|
|
|
|
|
+ foreach ($customFieldIDsObj as $value)
|
|
|
|
|
+ $customFieldIDs[] = $value->id;
|
|
|
logModuleCall(
|
|
logModuleCall(
|
|
|
'zimbrasingle',
|
|
'zimbrasingle',
|
|
|
__FUNCTION__,
|
|
__FUNCTION__,
|