From 65989cc05ad8a394bd932a1a9157a7e3fde246ae Mon Sep 17 00:00:00 2001 From: Alexeer Date: Wed, 21 May 2025 12:47:37 -0600 Subject: [PATCH] Fax --- views/configuracion/editar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/configuracion/editar.php b/views/configuracion/editar.php index 8e130d2..a45719d 100644 --- a/views/configuracion/editar.php +++ b/views/configuracion/editar.php @@ -255,7 +255,7 @@ include __DIR__ . '/../partials/sidebar_configuracion.php'; } // Validación Fax - if (!/^\d{3} \d{3} \d{4}$/.test(fax)) { + if (fax !== '' && !/^\d{3} \d{3} \d{4}$/.test(fax)) { errores.push('El número de fax debe tener el formato: 123 456 7890.'); }