exlcuded login time and date from validation

This commit is contained in:
2026-07-30 17:07:47 +02:00
parent e7d733a136
commit 2603c86c5b
+5
View File
@@ -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)
// 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(" $stmt = $pdo->prepare("
SELECT id AS mapping_id, template_id, field_label SELECT id AS mapping_id, template_id, field_label
FROM template_mapping FROM template_mapping
@@ -224,6 +228,7 @@ try {
AND is_required = 1 AND is_required = 1
AND is_visible_import = 1 AND is_visible_import = 1
AND id <> 189 AND id <> 189
AND field_id NOT IN (258, 350)
"); ");
$stmt->execute($templateIds); $stmt->execute($templateIds);
foreach ($stmt->fetchAll(PDO::FETCH_ASSOC) as $r) { foreach ($stmt->fetchAll(PDO::FETCH_ASSOC) as $r) {