You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f5d26b0
Browse filesBrowse the repository at this point in the historyBrowse files
✨ Add proactive chat invitation filter and department selection functionality 🎉
- Implemented a new filter for proactive chat invitations, allowing users to filter by department in the search panel. 🏢
- Created a dedicated template for the proactive chat invitation filter to enhance UI and user experience. 🎨
- Updated the model to support department filtering logic, ensuring accurate results based on selected departments. 🔍
- Introduced new attributes for department handling in the proactive chat invitation model. 📊
if (is_object($inputData) && isset($inputData->dep_id) && is_array($inputData->dep_id)) {
102
+
$departmentIds = array_filter(array_map('intval', $inputData->dep_id), function ($id) {
103
+
return$id > 0;
104
+
});
105
+
106
+
if (!empty($departmentIds)) {
107
+
$ids = implode(',', $departmentIds);
108
+
$filter['filter_custom'][] = '(`lh_abstract_proactive_chat_invitation`.`dep_id` IN (' . $ids . ') OR `lh_abstract_proactive_chat_invitation`.`id` IN (SELECT `invitation_id` FROM `lh_abstract_proactive_chat_invitation_dep` WHERE `dep_id` IN (' . $ids . ')))';
0 commit comments