fix: tomas prolongadas — firma no guardaba y countdown no aparecía

ver_formulario_enviado.php:
- $_mpPrimeraPendiente, $_mpBloqueado y $fSvg buscaban la clave campoId_svg
  pero guardar_toma.php guarda con clave campoId (sin sufijo). Se añade
  fallback a ambas claves para compatibilidad hacia adelante y atrás.

lugar.php:
- new Date('2026-07-09 15:30:00') no parsea en Safari; se reemplaza el
  espacio por 'T' para formato ISO antes de construir el timestamp.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-09 16:12:10 -05:00
co-authored by Claude Sonnet 4.6
parent 590795c199
commit 1296918c20
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -1254,7 +1254,7 @@ function renderConsentimientos(lista) {
lista.forEach(c => {
if (c.es_toma_progresiva && c.estado === 'en_progreso') {
_tomaTimers[c.id] = {
siguiente_toma_at: c.siguiente_toma_at ? new Date(c.siguiente_toma_at).getTime() : null,
siguiente_toma_at: c.siguiente_toma_at ? new Date(c.siguiente_toma_at.replace(' ', 'T')).getTime() : null,
alertado: false,
};
}