bug fix

array max change for ID group and  portflag check for customer view