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:
parent
cb97d95cdf
commit
e5242bf79c
@ -2202,7 +2202,8 @@ $installersData = json_decode($config['installersDataWhatsApp'] ?? '{"instalador
|
||||
let SYSTEM_USER_ID = <?php echo $currentUser ? $currentUser->userId : 'null'; ?>;
|
||||
|
||||
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',
|
||||
crmUrl: '<?php echo $ucrmApiUrl; ?>',
|
||||
publicUrl: '<?php echo $ucrmPublicUrl; ?>',
|
||||
@ -2300,6 +2301,10 @@ $installersData = json_decode($config['installersDataWhatsApp'] ?? '{"instalador
|
||||
targetSection.classList.add('active');
|
||||
}
|
||||
|
||||
if (tabName === 'installer-jobs') {
|
||||
populateInstallerJobsSelect();
|
||||
}
|
||||
|
||||
// Initialize module if needed
|
||||
if (tabName === 'notificaciones' && !window.notificacionesInitialized) {
|
||||
// Load clients for notifications module
|
||||
|
||||
Loading…
Reference in New Issue
Block a user