Kaynağa Gözat

#281 Groups: invite members pre-fill yourself

Alex Trofimov 10 yıl önce
ebeveyn
işleme
9e38cf247f

+ 4 - 0
modules/boonex/groups/classes/BxGroupsFormEntry.php

@@ -26,6 +26,10 @@ class BxGroupsFormEntry extends BxBaseModProfileFormEntry
 			$this->aInputs[$CNF['FIELD_ALLOW_VIEW_TO']] = BxGroupsPrivacy::getGroupChooser($CNF['OBJECT_PRIVACY_VIEW']);
 			$this->aInputs[$CNF['FIELD_ALLOW_VIEW_TO']]['db']['pass'] = 'Xss';
 		}
+
+        if(!isset($this->aInputs['initial_members']['value'])) {
+            $this->aInputs['initial_members']['value'] = array(bx_get_logged_profile_id());
+        }
     }
 
     protected function genCustomInputInitialMembers ($aInput)