1
0
Эх сурвалжийг харах

#2500 Photos(and maybe other content) isn't deleted when profile (or account with profiles) is deleted

Alex Trofimov 6 жил өмнө
parent
commit
17c2c154ff

+ 2 - 2
modules/base/profile/classes/BxBaseModProfileFormsEntryHelper.php

@@ -52,9 +52,9 @@ class BxBaseModProfileFormsEntryHelper extends BxBaseModGeneralFormsEntryHelper
         if (!$aContentInfo)
             list ($oProfile, $aContentInfo) = $this->_getProfileAndContentData($iContentId);
 
-        // delete profile
+        // delete profile with content
         $oProfile = BxDolProfile::getInstance($aContentInfo['profile_id']);
-        if (!$oProfile->delete())
+        if (!$oProfile->delete(false, true))
             return _t('_sys_txt_error_entry_delete');
 
         return '';