fix: poblar correctamente la lista desplegable de instaladores en el módulo Tareas Activas combinando instaladores registrados y administradores del sistema UCRM

This commit is contained in:
DANYDHSV 2026-07-28 15:06:56 -06:00
parent cb97d95cdf
commit e5242bf79c

View File

@ -2202,7 +2202,8 @@ $installersData = json_decode($config['installersDataWhatsApp'] ?? '{"instalador
let SYSTEM_USER_ID = <?php echo $currentUser ? $currentUser->userId : 'null'; ?>; let SYSTEM_USER_ID = <?php echo $currentUser ? $currentUser->userId : 'null'; ?>;
const store = { const store = {
installers: <?php echo json_encode($installersData['instaladores']); ?>, installers: <?php echo json_encode($installersData['instaladores'] ?? []); ?>,
admins: <?php echo json_encode($admins); ?>,
theme: localStorage.getItem('theme') || 'light', theme: localStorage.getItem('theme') || 'light',
crmUrl: '<?php echo $ucrmApiUrl; ?>', crmUrl: '<?php echo $ucrmApiUrl; ?>',
publicUrl: '<?php echo $ucrmPublicUrl; ?>', publicUrl: '<?php echo $ucrmPublicUrl; ?>',
@ -2300,6 +2301,10 @@ $installersData = json_decode($config['installersDataWhatsApp'] ?? '{"instalador
targetSection.classList.add('active'); targetSection.classList.add('active');
} }
if (tabName === 'installer-jobs') {
populateInstallerJobsSelect();
}
// Initialize module if needed // Initialize module if needed
if (tabName === 'notificaciones' && !window.notificacionesInitialized) { if (tabName === 'notificaciones' && !window.notificacionesInitialized) {
// Load clients for notifications module // Load clients for notifications module