task reminder re-appearing fix

This commit is contained in:
Yuri Kuznetsov
2025-02-11 13:08:32 +02:00
parent e802ceea86
commit 87875c1a7f
3 changed files with 8 additions and 35 deletions
@@ -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 || [];