grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026load_merge_bean($_REQUEST['merge_module'], true, $_REQUEST['record']); $this->bean = $focus->merge_bean; $params = array(); $params[] = "{$GLOBALS['app_list_strings']['moduleList'][$focus->merge_bean->module_dir]}"; $params[] = $mod_strings['LBL_STEP2_FORM_TITLE']; $params[] = $focus->merge_bean->name; echo getClassicModuleTitle($focus->merge_bean->module_dir, $params, true); $order_by_name = $focus->merge_module.'2_'.strtoupper($focus->merge_bean->object_name).'_ORDER_BY' ; $lvso = isset($_REQUEST['lvso'])?$_REQUEST['lvso']:""; $request_order_by_name = isset($_REQUEST[$order_by_name])?$_REQUEST[$order_by_name]:""; echo '
' .'' .'' .'' .'' .'' ."" .""; $focus->populate_search_params($_REQUEST); echo $focus->get_inputs_for_search_params($_REQUEST); $where_clauses = array(); $where_clauses = $focus->create_where_statement(); $where = $focus->generate_where_statement($where_clauses); $ListView = new ListViewSmarty(); $ListView->should_process = true; $ListView->mergeduplicates = false; $ListView->export = false; $ListView->delete = false; $module = $_REQUEST['merge_module']; $metadataFile = null; $foundViewDefs = false; if (file_exists('custom/modules/' . $module. '/metadata/listviewdefs.php')) { $metadataFile = 'custom/modules/' . $module . '/metadata/listviewdefs.php'; $foundViewDefs = true; } else { if (file_exists('custom/modules/'.$module.'/metadata/metafiles.php')) { require_once('custom/modules/'.$module.'/metadata/metafiles.php'); if (!empty($metafiles[$module]['listviewdefs'])) { $metadataFile = $metafiles[$module]['listviewdefs']; $foundViewDefs = true; } } elseif (file_exists('modules/'.$module.'/metadata/metafiles.php')) { require_once('modules/'.$module.'/metadata/metafiles.php'); if (!empty($metafiles[$module]['listviewdefs'])) { $metadataFile = $metafiles[$module]['listviewdefs']; $foundViewDefs = true; } } } if (!$foundViewDefs && file_exists('modules/'.$module.'/metadata/listviewdefs.php')) { $metadataFile = 'modules/'.$module.'/metadata/listviewdefs.php'; } require_once($metadataFile); $displayColumns = array(); if (!empty($_REQUEST['displayColumns'])) { foreach (explode('|', $_REQUEST['displayColumns']) as $num => $col) { if (!empty($listViewDefs[$module][$col])) { $displayColumns[$col] = $listViewDefs[$module][$col]; } } } else { foreach ($listViewDefs[$module] as $col => $params) { if (!empty($params['default']) && $params['default']) { $displayColumns[$col] = $params; } } } $params = array('massupdate' => true, 'export' => false, 'handleMassupdate' => false ); $ListView->displayColumns = $displayColumns; $ListView->lvd->listviewName = $focus->merge_module; //27633, this will make the $module to be merge_module instead of 'MergeRecords'. Then the key of offset and orderby will be correct. $where = $focus->generate_where_statement($focus->create_where_statement()); $ListView->showMassupdateFields=false; $ListView->email=false; $ListView->setup($this->bean, 'include/ListView/ListViewGeneric.tpl', $where, $params); $ListView->force_mass_update=true; $ListView->show_mass_update_form=false; $ListView->show_export_button=false; $ListView->keep_mass_update_form_open=true; $return_id = $_REQUEST['record']; $merge_module = $focus->merge_module; $button_title = $current_module_strings['LBL_PERFORM_MERGE_BUTTON_TITLE']; $button_key = $current_module_strings['LBL_PERFORM_MERGE_BUTTON_KEY']; $button_label = $current_module_strings['LBL_PERFORM_MERGE_BUTTON_LABEL']; $cancel_title=$app_strings['LBL_CANCEL_BUTTON_TITLE']; $cancel_key=$app_strings['LBL_CANCEL_BUTTON_KEY']; $cancel_label=$app_strings['LBL_CANCEL_BUTTON_LABEL']; echo($ListView->display()); $error_select=$current_module_strings['LBL_SELECT_ERROR']; $form_top = << EOQ; echo $form_top;