From 2603c86c5bb62ac80c43ec64e1df1c447781d167 Mon Sep 17 00:00:00 2001 From: solocla Date: Thu, 30 Jul 2026 17:07:47 +0200 Subject: [PATCH] exlcuded login time and date from validation --- public/userarea/validate_export.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/userarea/validate_export.php b/public/userarea/validate_export.php index 41351c2..76b48f9 100644 --- a/public/userarea/validate_export.php +++ b/public/userarea/validate_export.php @@ -217,6 +217,10 @@ try { } // Required custom fields that are visible in the import grid (excluding filed_id = 189 Tested component) + // Required custom fields that are visible in the import grid (excluding filed_id = 189 Tested component) + // Also exclude field_id 258 (Login Date) and 350 (Login Time): auto-populated at + // export time (save_export_lims.php STEP 4a), so they must not block validation + // even when empty at this stage. $stmt = $pdo->prepare(" SELECT id AS mapping_id, template_id, field_label FROM template_mapping @@ -224,6 +228,7 @@ try { AND is_required = 1 AND is_visible_import = 1 AND id <> 189 + AND field_id NOT IN (258, 350) "); $stmt->execute($templateIds); foreach ($stmt->fetchAll(PDO::FETCH_ASSOC) as $r) {