Skip to content
Snippets Groups Projects
Commit f3193290 authored by madhu sr's avatar madhu sr
Browse files

Fixes: Added search parameters to the where condition for related records search in the popup modal

parent 948b5a17
No related branches found
No related tags found
No related merge requests found
......@@ -180,8 +180,8 @@ class Vtiger_Popup_View extends Vtiger_Footer_View {
foreach ($searchParams as $fieldListGroup) {
foreach ($fieldListGroup as $fieldSearchInfo) {
$fieldModel = $moduleFields[$fieldSearchInfo[0]];
$tableName = $fieldModel->get('table');
$column = $fieldModel->get('column');
$tableName = Vtiger_Util_Helper::validateStringForSql($fieldModel->get('table'));
$column = Vtiger_Util_Helper::validateStringForSql($fieldModel->get('column'));
$whereCondition[$fieldSearchInfo[0]] = array($tableName.'.'.$column, $fieldSearchInfo[1], $fieldSearchInfo[2]);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment