From c3e8fe41ef31db39e238bb064c8113e0219ec69e Mon Sep 17 00:00:00 2001
From: Varun Kumar Dubey <vapvarun@gmail.com>
Date: Sat, 7 Jul 2018 11:08:37 +0530
Subject: [PATCH] added create_screen_checked parameter

---
 .../bp-nouveau/buddypress/groups/single/admin/group-settings.php        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/group-settings.php b/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/group-settings.php
index 6a02a2179..937375277 100644
--- a/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/group-settings.php
+++ b/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/group-settings.php
@@ -71,7 +71,7 @@
 		<?php foreach ( $group_types as $type ) : ?>
 			<div class="checkbox">
 				<label for="<?php printf( 'group-type-%s', $type->name ); ?>">
-					<input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php checked( bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ); ?>/> <?php echo esc_html( $type->labels['name'] ); ?>
+					<input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php checked( true, ! empty( $type->create_screen_checked ) ); ?>/> <?php echo esc_html( $type->labels['name'] ); ?>
 					<?php
 					if ( ! empty( $type->description ) ) {
 						printf( '&ndash; %s', '<span class="bp-group-type-desc">' . esc_html( $type->description ) . '</span>' );
