Skip to content

Commit

Permalink
fixed bug related to mandatory field settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiwo Awoyinfa committed Jun 9, 2023
1 parent 736c370 commit 526c4d9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $util.qr($ctx.args.input.put("modifiedBy", $ctx.identity.username))
#end
#end

#if ($ctx.args.input.ticketNo && !$util.matches("[A-Za-z0-9]", $ctx.args.input.ticketNo.substring(0,1)))
#if ($ctx.args.input.ticketNo != '' && !$util.matches("[A-Za-z0-9]", $ctx.args.input.ticketNo.substring(0,1)))
$util.error('Invalid input')
#end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $util.qr($ctx.args.input.put("modifiedBy", $ctx.identity.username))
#end
#end

#if ($ctx.args.input.ticketNo && !$util.matches("[A-Za-z0-9]", $ctx.args.input.ticketNo.substring(0,1)))
#if ($ctx.args.input.ticketNo != '' && !$util.matches("[A-Za-z0-9]", $ctx.args.input.ticketNo.substring(0,1)))
$util.error('Invalid input')
#end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $util.qr($ctx.stash.defaultValues.put("status", "pending"))
$util.error('Invalid input')
#end

#if (($ctx.args.input.ticketNo && !$util.matches("[A-Za-z0-9]", $ctx.args.input.ticketNo.substring(0,1))) ||
#if (($ctx.args.input.ticketNo != '' && !$util.matches("[A-Za-z0-9]", $ctx.args.input.ticketNo.substring(0,1))) ||
!$util.matches("[A-Za-z0-9]", $ctx.args.input.justification.substring(0,1)))
$util.error('Invalid input')
#end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $util.qr($ctx.args.input.put("modifiedBy", $ctx.identity.username))
#end
#end

#if ($ctx.args.input.ticketNo && !$util.matches("[A-Za-z0-9]", $ctx.args.input.ticketNo.substring(0,1)))
#if ($ctx.args.input.ticketNo != '' && !$util.matches("[A-Za-z0-9]", $ctx.args.input.ticketNo.substring(0,1)))
$util.error('Invalid input')
#end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $util.qr($ctx.args.input.put("modifiedBy", $ctx.identity.username))
#end
#end

#if ($ctx.args.input.ticketNo && !$util.matches("[A-Za-z0-9]", $ctx.args.input.ticketNo.substring(0,1)))
#if ($ctx.args.input.ticketNo != '' && !$util.matches("[A-Za-z0-9]", $ctx.args.input.ticketNo.substring(0,1)))
$util.error('Invalid input')
#end

Expand Down

0 comments on commit 526c4d9

Please sign in to comment.