fixed clone parts
This commit is contained in:
@@ -69,7 +69,7 @@ try {
|
|||||||
|
|
||||||
$stmtLoadAnalyses = $pdo->prepare("
|
$stmtLoadAnalyses = $pdo->prepare("
|
||||||
SELECT idmatrice, analysis_recordkey, analysis_name, analysis_method,
|
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
|
FROM identification_parts_analyses
|
||||||
WHERE part_id = ?
|
WHERE part_id = ?
|
||||||
ORDER BY id ASC
|
ORDER BY id ASC
|
||||||
@@ -78,10 +78,10 @@ try {
|
|||||||
$stmtInsertAnalysis = $pdo->prepare("
|
$stmtInsertAnalysis = $pdo->prepare("
|
||||||
INSERT INTO identification_parts_analyses
|
INSERT INTO identification_parts_analyses
|
||||||
(part_id, iddatadb, idmatrice, analysis_recordkey, analysis_name, analysis_method,
|
(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
|
VALUES
|
||||||
(:part_id, :iddatadb, :idmatrice, :analysis_recordkey, :analysis_name, :analysis_method,
|
(: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("
|
$stmtInsertCF = $pdo->prepare("
|
||||||
@@ -161,6 +161,7 @@ try {
|
|||||||
':analysis_name' => $an['analysis_name'] ?? null,
|
':analysis_name' => $an['analysis_name'] ?? null,
|
||||||
':analysis_method' => $an['analysis_method'] ?? null,
|
':analysis_method' => $an['analysis_method'] ?? null,
|
||||||
':analysis_level' => ($an['analysis_level'] !== null && $an['analysis_level'] !== '') ? (int)$an['analysis_level'] : 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_web_selectable' => (int)($an['is_web_selectable'] ?? 0),
|
||||||
':is_accredited' => (int)($an['is_accredited'] ?? 0),
|
':is_accredited' => (int)($an['is_accredited'] ?? 0),
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user