task reminder re-appearing fix
This commit is contained in:
@@ -58,40 +58,6 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"reminders": {
|
||||
"visible": {
|
||||
"conditionGroup": [
|
||||
{
|
||||
"type": "and",
|
||||
"value": [
|
||||
{
|
||||
"type": "or",
|
||||
"value": [
|
||||
{
|
||||
"type": "isNotEmpty",
|
||||
"attribute": "dateEnd"
|
||||
},
|
||||
{
|
||||
"type": "isNotEmpty",
|
||||
"attribute": "dateEndDate"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "notEquals",
|
||||
"attribute": "status",
|
||||
"value": "Completed"
|
||||
},
|
||||
{
|
||||
"type": "notEquals",
|
||||
"attribute": "status",
|
||||
"value": "Canceled"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -89,7 +89,8 @@
|
||||
"Espo\\Modules\\Crm\\Classes\\FieldValidators\\Event\\Reminders\\Valid",
|
||||
"Espo\\Modules\\Crm\\Classes\\FieldValidators\\Event\\Reminders\\MaxCount"
|
||||
],
|
||||
"duplicateIgnore": true
|
||||
"duplicateIgnore": true,
|
||||
"dynamicLogicDisabled": true
|
||||
},
|
||||
"description": {
|
||||
"type": "text",
|
||||
|
||||
@@ -63,6 +63,12 @@ class RemindersHandler {
|
||||
}
|
||||
|
||||
control() {
|
||||
if (!this.model.attributes.dateEnd && !this.model.attributes.dateEndDate) {
|
||||
this.view.hideField('reminders');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/** @type {string[]} */
|
||||
const assignedUsersIds = this.model.attributes.assignedUsersIds || [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user