From e2bea43bb03a12a625911a7cde1308113ebb0389 Mon Sep 17 00:00:00 2001 From: junmt <12598156+junmt@users.noreply.github.com> Date: Wed, 4 Sep 2024 19:22:25 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=89=E3=82=AD=E3=83=A5=E3=83=A1=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=81=AE=E3=83=AA=E3=82=B9=E3=83=88=E3=81=A7=E3=83=95?= =?UTF-8?q?=E3=82=A9=E3=83=AB=E3=83=80=E3=82=92=E6=9D=A1=E4=BB=B6=E3=81=AB?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E3=81=99=E3=82=8B=E3=81=A8=E6=A4=9C=E7=B4=A2?= =?UTF-8?q?=E7=B5=90=E6=9E=9C=E3=81=8C=E3=82=BC=E3=83=AD=E4=BB=B6=E3=81=AB?= =?UTF-8?q?=E3=81=AA=E3=82=8B=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=20(#1088)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jun Matsuda <{ID}+{username}@users.noreply.github.com> --- include/QueryGenerator/EnhancedQueryGenerator.php | 6 +++++- layouts/v7/modules/Vtiger/resources/Field.js | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/include/QueryGenerator/EnhancedQueryGenerator.php b/include/QueryGenerator/EnhancedQueryGenerator.php index 8584b4d56..e0dcfcdfe 100644 --- a/include/QueryGenerator/EnhancedQueryGenerator.php +++ b/include/QueryGenerator/EnhancedQueryGenerator.php @@ -674,7 +674,11 @@ public function getWhereClause() { $columnSql = getSqlForNameInDisplayFormat(array('last_name'=>$columnSqlTable.'.last_name', 'first_name'=>$columnSqlTable.'.first_name'),'Users'); } else if(in_array('DocumentFolders', $moduleList)) { - $columnSql = "vtiger_attachmentsfolder".$fieldName.".foldername"; + if($conditionInfo['operator'] == 'e' || $conditionInfo['operator'] == 'n') { + $columnSql = "vtiger_attachmentsfolder".$fieldName.".folderid"; + } else { + $columnSql = "vtiger_attachmentsfolder".$fieldName.".foldername"; + } } else if(in_array('Currency', $moduleList)) { $columnSql = "vtiger_currency_info$parentReferenceField$fieldName.currency_name"; if($fieldName == 'currency_id' && is_numeric($conditionInfo['value'])){ diff --git a/layouts/v7/modules/Vtiger/resources/Field.js b/layouts/v7/modules/Vtiger/resources/Field.js index f51ca2a0e..63fb215fe 100644 --- a/layouts/v7/modules/Vtiger/resources/Field.js +++ b/layouts/v7/modules/Vtiger/resources/Field.js @@ -308,6 +308,12 @@ Vtiger_Field_Js('Vtiger_Documentsfolder_Field_Js',{},{ * @return - select element and chosen element */ getUi : function() { + // リストの条件によって表示を変える + if(this.get('comparatorElementVal') != 'e' && this.get('comparatorElementVal') != 'n') { + var html = ''; + return jQuery(html); + } + //added class inlinewidth var html = '