done
This commit is contained in:
parent
c916d9d1e6
commit
eb0d65db19
@ -244,7 +244,11 @@ foreach ($arr_total_products as $product) {
|
||||
$analysis_data = $analysis_query->Results;
|
||||
$ref_id = 0;
|
||||
if (count($analysis_data) > 0) {
|
||||
$ref_id = $analysis_data[0]['idanalysisvocabulary'];
|
||||
if($analysis_data[0]['refid'] == 0){
|
||||
$ref_id = $analysis_data[0]['idanalysisvocabulary'];
|
||||
}else{
|
||||
$ref_id = $analysis_data[0]['refid'];
|
||||
}
|
||||
}
|
||||
}
|
||||
array_push($arr_result_project_need_idx, array($arr_associate[$i]->column_name, $ref_id, 1));
|
||||
@ -271,7 +275,11 @@ foreach ($arr_total_products as $product) {
|
||||
$analysis_data = $analysis_query->Results;
|
||||
$ref_id = 0;
|
||||
if (count($analysis_data) > 0) {
|
||||
$ref_id = $analysis_data[0]['idcompoundsvocabulary'];
|
||||
if($analysis_data[0]['refid'] == 0){
|
||||
$ref_id = $analysis_data[0]['idcompoundsvocabulary'];
|
||||
}else{
|
||||
$ref_id = $analysis_data[0]['refid'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user