This commit is contained in:
the-djmaze 2023-02-22 12:18:49 +01:00
parent 77126d989a
commit f662841281

View file

@ -4,8 +4,8 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
{ {
const const
NAME = 'Nextcloud', NAME = 'Nextcloud',
VERSION = '2.18', VERSION = '2.19',
RELEASE = '2023-02-20', RELEASE = '2023-02-22',
CATEGORY = 'Integrations', CATEGORY = 'Integrations',
DESCRIPTION = 'Integrate with Nextcloud v20+', DESCRIPTION = 'Integrate with Nextcloud v20+',
REQUIRED = '2.25.1'; REQUIRED = '2.25.1';
@ -202,13 +202,15 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
} }
if ($bSave) { if ($bSave) {
$oActions = \RainLoop\Api::Actions(); $oActions = \RainLoop\Api::Actions();
$oAccount = $oActions->getAccountFromToken(); $oActions->setContactsSyncData(
$this->setContactsSyncData($oAccount, array( $oActions->getAccountFromToken(),
'Mode' => $aResult['ContactsSync']['Mode'], array(
'User' => $aResult['ContactsSync']['User'], 'Mode' => $aResult['ContactsSync']['Mode'],
'Password' => $aResult['ContactsSync']['Password'], 'User' => $aResult['ContactsSync']['User'],
'Url' => $aResult['ContactsSync']['Url'] 'Password' => $aResult['ContactsSync']['Password'],
)); 'Url' => $aResult['ContactsSync']['Url']
)
);
} }
} }
} }