Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Title in listview
#2
hi rslemer,

i want to replace the "Description" in Related Listview for Timecontrol to "Service"

default array is
Timecontrol Number Title Date Start Time Start Total Time Description Assigned To Action

i want it to be
Timecontrol Number Title Date Start Time Start Total Time Service Assigned To Action

=================
file to edit is modules/Timecontrol/Timecontrol.php

the value to edit is 'Description' => array('crmentity' => 'description'), --> this needs to replace to 'Service Name'=>array('service'=>'servicename'),

and

'Description' => 'description', --> this needs to replace to 'Service Name'=>'servicename',


Find a line which has;

/**
* Mandatory for Listing (Related listview)
*/
public $list_fields = array (
/* Format: Field Label => array(tablename => columnname) */
// tablename should not have prefix 'vtiger_'
'Timecontrol Number' => array('timecontrol' => 'timecontrolnr'),
'Title'=> array('timecontrol' => 'title'),
'Date Start' => array('timecontrol' => 'date_start'),
'Time Start' => array('timecontrol' => 'time_start'),
'Total Time' => array('timecontrol' => 'totaltime'),
'Description' => array('crmentity' => 'description'), --> this needs to replace to 'Service Name'=>array('service'=>'servicename'),
'Assigned To' => array('crmentity' => 'smownerid')
);
public $list_fields_name = array(
/* Format: Field Label => fieldname */
'Timecontrol Number' => 'timecontrolnr',
'Title'=> 'title',
'Date Start' => 'date_start',
'Time Start' => 'time_start',
'Total Time' => 'totaltime',
'Description' => 'description', --> this needs to replace to 'Service Name'=>'servicename',
'Assigned To' => 'assigned_user_id'
);

==================
is this all?

or do i have to edit HelpDesk.php as well?


cheers
Dennis
coreBOS 8.0
Reply


Messages In This Thread
Title in listview - rslemer - 02-08-2019, 02:52 PM
RE: Title in listview - global.da - 08-22-2019, 02:58 AM
RE: Title in listview - rslemer - 08-22-2019, 12:39 PM
RE: Title in listview - joebordes - 08-22-2019, 09:18 AM
RE: Title in listview - joebordes - 08-22-2019, 01:28 PM
RE: Title in listview - global.da - 08-23-2019, 07:57 AM
RE: Title in listview - rslemer - 08-22-2019, 08:27 PM
RE: Title in listview - joebordes - 08-22-2019, 10:29 PM
RE: Title in listview - joebordes - 08-23-2019, 01:38 PM
RE: Title in listview - solved - global.da - 08-27-2019, 06:34 AM
RE: Title in listview - joebordes - 08-28-2019, 08:18 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)