issue 46 validator apply to member module

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8512 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-06-21 08:28:58 +00:00
parent 6683636782
commit ee58f755a8
20 changed files with 194 additions and 66 deletions

View file

@ -1490,6 +1490,9 @@
$oDB->rollback();
return $output;
}
if(is_array($args->group_srl_list)) $group_srl_list = $args->group_srl_list;
else $group_srl_list = explode('|@|', $args->group_srl_list);
// If no value is entered the default group, the value of group registration
if(!$args->group_srl_list) {
$columnList = array('site_srl', 'group_srl');
@ -1502,7 +1505,6 @@
}
// If the value is the value of the group entered the group registration
} else {
$group_srl_list = explode('|@|', $args->group_srl_list);
for($i=0;$i<count($group_srl_list);$i++) {
$output = $this->addMemberToGroup($args->member_srl,$group_srl_list[$i]);
@ -1623,9 +1625,10 @@
$oDB->rollback();
return $output;
}
if(is_array($args->group_srl_list)) $group_srl_list = $args->group_srl_list;
else $group_srl_list = explode('|@|', $args->group_srl_list);
// If the group information, group information changes
if($args->group_srl_list) {
$group_srl_list = explode('|@|', $args->group_srl_list);
if(count($group_srl_list) > 0) {
$args->site_srl = 0;
// One of its members to delete all the group
$output = executeQuery('member.deleteMemberGroupMember', $args);