sugarcrm disabling search page for module -


i have 2 custom modules: cm_product, cm_item

with 1 many relationship: cm_product -> cm_item

i want disable search page cm_item, way see items customer through it's parent reference: cm_product.

i need accomplish through code.

this temporary solution if interested in, file - custom/modules/cm_item/views/view.list.php:

<?php if(!defined('sugarentry') || !sugarentry) die('not valid entry point');  require_once 'include/mvc/view/views/view.list.php';  class cm_itemviewlist extends viewlist {     public function predisplay() { }     public function display() {         echo <<<html         <h1>por favor seleccione la oportunidad para ver sus correspondientes ventas e items.</h1> html;     }     function preparesearchform(){ }     function listviewprocess(){ } } 

sugarcrm versiĆ³n 6.5.11 (build 8754) pro edition.

it can possible via add blank array line @ end of file i.e. custom/modules/cm_item/metadata/searchdefs.php

$searchdefs[$module_name] = array(); 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -