Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sarun Mungthanya
SpnPatch-Laravel
Commits
06f35752
Commit
06f35752
authored
Dec 16, 2024
by
Chanon.u
Browse files
Fix incorrect alert message for cancel response
parent
a8365c22
Changes
1
Show whitespace changes
Inline
Side-by-side
app/Http/Livewire/Pages/ManualResponse/ManualResponse.php
View file @
06f35752
...
...
@@ -300,11 +300,16 @@ class ManualResponse extends Component
}
//Validate profile production
if
(
in_array
(
$messageType
,
[
'XCDA'
,
'XCDR'
,
'SDCA'
,
'SDCR'
])
&&
$declarationNo
==
''
){
if
(
in_array
(
$messageType
,
[
'XCDA'
,
'XCDR'
])
&&
$declarationNo
==
''
){
return
[
"success"
=>
false
,
'message'
=>
'Cancel template is required "Declaration Number" field.'
];
}
else
if
(
in_array
(
$messageType
,
[
'SDCA'
,
'SDCR'
])
&&
$declarationNo
==
''
){
return
[
"success"
=>
false
,
'message'
=>
'Short template is required "Declaration Number" field.'
];
}
if
(
str_starts_with
(
$messageType
,
"XCDA_"
)
&&
$declarationNo
==
''
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment