Merged PR 77: bug540 ログインユーザー変数.isGuestの値挿入修正
bug540 ログインユーザー変数.isGuestの値挿入修正
This commit is contained in:
@@ -75,19 +75,16 @@ export class InsertValueAction implements IAction{
|
||||
checkVariableValueBlank(fieldType :string | undefined,inputValueArray :any,fieldCode :string,fieldRequired :boolean | undefined,event :any): boolean{
|
||||
|
||||
let variableHasBlank;
|
||||
let variableHasNull;
|
||||
//正規表現チェック
|
||||
for(let i =0;i<inputValueArray.length;i++){
|
||||
//配列の要素にnullがないか、空白文字が値に含まれていないかチェックする
|
||||
if (inputValueArray[i] !== null && inputValueArray[i] !== undefined && inputValueArray[i] !== "" && typeof inputValueArray[i] === "string"){
|
||||
variableHasBlank = inputValueArray[i].match(/^(\s| )*$/);//値が半角スペース・タブ文字・改行・改ページ・全角スペースのみであるか
|
||||
}else{
|
||||
variableHasNull = true;
|
||||
if (typeof inputValueArray[i] === "string"){
|
||||
variableHasBlank = inputValueArray[i].match(/^(\s| )*$/);//値が半角スペース・タブ文字・改行・改ページ・全角スペースのみであるか
|
||||
}
|
||||
}
|
||||
|
||||
//変数の値に空白文字が入っている、配列に要素がないときは、エラーチェックする
|
||||
if(variableHasBlank !== null || variableHasNull || inputValueArray.length === 0){
|
||||
if(variableHasBlank !== null && variableHasBlank !== undefined && variableHasBlank !== "" && inputValueArray.length === 0){
|
||||
//空白文字を空白文字が非対応のフィールドに挿入しようとしている場合、例外を発生させる
|
||||
if(fieldType === "NUMBER" || fieldType === "DATE" || fieldType === "DATETIME" || fieldType === "TIME" || fieldType === "USER_SELECT"
|
||||
|| fieldType === "ORGANIZATION_SELECT" || fieldType === "GROUP_SELECT" || fieldType === "RADIO_BUTTON" || fieldType === "DROP_DOWN" || fieldType === "CHECK_BOX" || fieldType === "MULTI_SELECT"){
|
||||
|
||||
Reference in New Issue
Block a user