diff --git a/public/userarea/clone_parts_to_visible.php b/public/userarea/clone_parts_to_visible.php index a2a9222e..0a03c9cf 100644 --- a/public/userarea/clone_parts_to_visible.php +++ b/public/userarea/clone_parts_to_visible.php @@ -69,7 +69,7 @@ try { $stmtLoadAnalyses = $pdo->prepare(" SELECT idmatrice, analysis_recordkey, analysis_name, analysis_method, - analysis_level, is_web_selectable, is_accredited + analysis_level, analysis_price, is_web_selectable, is_accredited FROM identification_parts_analyses WHERE part_id = ? ORDER BY id ASC @@ -78,10 +78,10 @@ try { $stmtInsertAnalysis = $pdo->prepare(" INSERT INTO identification_parts_analyses (part_id, iddatadb, idmatrice, analysis_recordkey, analysis_name, analysis_method, - analysis_level, is_web_selectable, is_accredited, created_at, updated_at) + analysis_level, analysis_price, is_web_selectable, is_accredited, created_at, updated_at) VALUES (:part_id, :iddatadb, :idmatrice, :analysis_recordkey, :analysis_name, :analysis_method, - :analysis_level, :is_web_selectable, :is_accredited, NOW(), NOW()) + :analysis_level, :analysis_price, :is_web_selectable, :is_accredited, NOW(), NOW()) "); $stmtInsertCF = $pdo->prepare(" @@ -161,6 +161,7 @@ try { ':analysis_name' => $an['analysis_name'] ?? null, ':analysis_method' => $an['analysis_method'] ?? null, ':analysis_level' => ($an['analysis_level'] !== null && $an['analysis_level'] !== '') ? (int)$an['analysis_level'] : null, + ':analysis_price' => ($an['analysis_price'] !== null && $an['analysis_price'] !== '') ? $an['analysis_price'] : null, ':is_web_selectable' => (int)($an['is_web_selectable'] ?? 0), ':is_accredited' => (int)($an['is_accredited'] ?? 0), ]);