Skip to content

Commit

Permalink
fix thinkingreed-inc#336 WebAPIのQuery処理で受注モジュールの明細行が全行取得できるように修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
sugimotohideo committed Oct 29, 2021
1 parent 9fb3087 commit 603b16e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/Webservices/VtigerModuleOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,13 @@ public function query($q){
if(!$meta->hasPermission(EntityMeta::$RETRIEVE,$row[$tableIdColumn])){
continue;
}
$output[$row[$tableIdColumn]] = DataTransform::sanitizeDataWithColumn($row,$meta);
if(strpos(explode("FROM",$mysql_query)[0], 'vtiger_inventoryproductrel') === false){
// 明細行が含まれていない場合
$output[$row[$tableIdColumn]] = DataTransform::sanitizeDataWithColumn($row,$meta);
}else{
// 明細行が含まれている場合
$output[] = DataTransform::sanitizeDataWithColumn($row,$meta);
}
}

$newOutput = array();
Expand Down

0 comments on commit 603b16e

Please sign in to comment.