#66 에 따른 상품관리 분류 select 관련 코드 수정

This commit is contained in:
chicpro
2013-04-12 18:22:42 +09:00
parent 5241e29e1b
commit bf2248c9a7
2 changed files with 10 additions and 9 deletions

View File

@ -627,9 +627,10 @@ function conv_selected_option($options, $value)
if(!$options)
return '';
$str = str_replace('value="'.$value.'"', 'value="'.$value.'" selected="selected"', $options);
//$options = str_replace('value="'.$value.'"', 'value="'.$value.'" selected="selected"', $options);
$options = preg_replace('/(value=[\'\"]'.$value.'[\'\"])/', '\\1 selected="selected"', $options);
return $str;
return $options;
}
// 주문서 번호를 얻는다.