Skip to content

Commit

Permalink
#1568 Connect modules: create profiles from 'edit' form fields, inste…
Browse files Browse the repository at this point in the history
…ad of 'add' form fields
  • Loading branch information
AlexTr committed Sep 11, 2018
1 parent b260ac7 commit dc4dfa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/base/connect/classes/BxBaseModConnectModule.php
Expand Up @@ -132,7 +132,7 @@ function _createProfileRaw($aProfileInfo, $sAlternativeName = '', $isAutoFriends

// check fields existence in Account
$oFormHelperAccount = BxDolService::call('system', 'forms_helper');
$oFormAccount = $oFormHelperAccount->getObjectFormAdd();
$oFormAccount = $oFormHelperAccount->getObjectFormEdit();
foreach ($aFieldsAccount as $sKey => $mValue) {
if (!$oFormAccount->isFieldExist($sKey))
unset($aFieldsAccount[$sKey]);
Expand Down

0 comments on commit dc4dfa1

Please sign in to comment.