fixed matrix in analysis

This commit is contained in:
2026-07-20 15:18:29 +02:00
parent 699bffaa78
commit 7db96a1f9c
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
function loadAnalysisMatrixNames() {
return $.ajax({
url: "get_matrici_db.php",
url: "search_matrici.php?full_list=1",
method: "GET",
dataType: "json",
})
+5 -1
View File
@@ -62,7 +62,11 @@ if (isset($_GET['macro_list'])) {
echo json_encode(['success' => true, 'value' => $macros]);
exit;
}
// Return full matrix list (same shape as get_matrici_db.php)
if (isset($_GET['full_list'])) {
echo json_encode(['success' => true, 'value' => $matrici]);
exit;
}
// Search (with optional MacroMatrice filter) - multi-term AND, position-independent, ranked
$terms = array_values(array_filter(
preg_split('/\s+/u', $q, -1, PREG_SPLIT_NO_EMPTY)