PMCORE-3673: When a case is reassigned or paused the "Notify users of case" does not work

This commit is contained in:
Rodrigo Quelca
2024-01-18 19:18:19 +00:00
parent dc07a3ddf7
commit fda156f070
2 changed files with 4 additions and 4 deletions

View File

@@ -207,7 +207,7 @@ export let cases = {
unpaused_time: data.unpausedTime, unpaused_time: data.unpausedTime,
index: data.DEL_INDEX, index: data.DEL_INDEX,
reason: data.reasonPause, reason: data.reasonPause,
sendMail: data.notifyUser sendMail: data.notifyUser || false
}, },
keys: { keys: {
app_uid: data.APP_UID app_uid: data.APP_UID

View File

@@ -78,7 +78,7 @@
<label for="notifyUser">{{ $t('ID_NOTIFY_USERS_CASE') }}</label> <label for="notifyUser">{{ $t('ID_NOTIFY_USERS_CASE') }}</label>
</b-col> </b-col>
<b-col sm="8"> <b-col sm="8">
<b-form-checkbox v-model="pauseData.nofitfyUser" id="notifyUser" name="notifyUser" switch> <b-form-checkbox v-model="pauseData.notifyUser" id="notifyUser" name="notifyUser" switch>
</b-form-checkbox> </b-form-checkbox>
</b-col> </b-col>
</b-row> </b-row>
@@ -119,7 +119,7 @@ export default {
unpauseDate: '', unpauseDate: '',
unpauseTime: '', unpauseTime: '',
reasonPause: '', reasonPause: '',
nofitfyUser: '', notifyUser: false,
pauseDate: '', pauseDate: '',
pauseTime: '' pauseTime: ''
}, },
@@ -162,7 +162,7 @@ export default {
let that = this; let that = this;
this.data.unpausedDate = this.pauseData.unpauseDate; this.data.unpausedDate = this.pauseData.unpauseDate;
this.data.unpausedTime = this.pauseData.unpauseTime; this.data.unpausedTime = this.pauseData.unpauseTime;
this.data.nofitfyUser = this.pauseData.nofitfyUser; this.data.notifyUser = this.pauseData.notifyUser;
this.data.reasonPause = this.pauseData.reasonPause; this.data.reasonPause = this.pauseData.reasonPause;
api.cases.pauseCase(this.data) api.cases.pauseCase(this.data)
.then((response) => { .then((response) => {