Remove duplicate station IDs in logbook locations
Added array_unique to ensure only unique station IDs are included in the logbooks_locations_array, preventing duplicate entries.
这个提交包含在:
父节点
12f02b7e6f
当前提交
441cc5fa61
共有 1 个文件被更改,包括 3 次插入 和 0 次删除
|
|
@ -1704,6 +1704,9 @@ class Logbook_model extends CI_Model
|
||||||
$logbooks_locations_array = $StationLocationsArray;
|
$logbooks_locations_array = $StationLocationsArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ensure only unique station IDs (no duplicates)
|
||||||
|
//$logbooks_locations_array = array_unique($logbooks_locations_array);
|
||||||
|
|
||||||
if (empty($logbooks_locations_array)) {
|
if (empty($logbooks_locations_array)) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用