Project

General

Profile

« Previous | Next » 

Revision 5c3a8a9c

Added by Stephen Jones about 7 years ago

Fixed #8622 It will now revert to whatever was previously saved in the config if there is an input error for user groups

View differences:

src/usr/local/www/system_usermanager.php
822 822

  
823 823
	foreach ($config['system']['group'] as $Ggroup) {
824 824
		if ($Ggroup['name'] != "all") {
825
			if (($act == 'edit') && $Ggroup['member'] && in_array($pconfig['uid'], $Ggroup['member'])) {
825
			if (($act == 'edit' || $input_errors) && $Ggroup['member'] && in_array($a_user[$id]['uid'], $Ggroup['member'])) {
826 826
				$usersGroups[ $Ggroup['name'] ] = $Ggroup['name'];	// Add it to the user's list
827 827
			} else {
828 828
				$systemGroups[ $Ggroup['name'] ] = $Ggroup['name']; // Add it to the 'not a member of' list

Also available in: Unified diff