Hi Sugar
We are not using the Quote Line Item and some others in the Task module, Related to options.
We want to remove it from the drop-down list, how do we do that? Please see screenshot below.
Thanks
Hi Sugar
We are not using the Quote Line Item and some others in the Task module, Related to options.
We want to remove it from the drop-down list, how do we do that? Please see screenshot below.
Thanks
The parent list is a dropdown called parent_type_displey maintained in Dropdown Editor, but if you remove Quotes from it, it will be removed from any and all parent fields that use that list for their options.
If you look at the original parent_type field definition in Tasks:
modules/Tasks/vardefs.php
You will see the options defined as parent_type_display for both parent_type and parent_name
'parent_type' => array(
'name' => 'parent_type',
'vname' => 'LBL_PARENT_NAME',
'type' => 'parent_type',
'dbType' => 'varchar',
'group' => 'parent_name',
'options' => 'parent_type_display',
'required' => false,
'len' => '255',
'comment' => 'The Sugar object to which the call is related',
'studio' => array('wirelesslistview' => false),
'options' => 'parent_type_display',
),
'parent_name' => array(
'name' => 'parent_name',
'parent_type' => 'record_type_display',
'type_name' => 'parent_type',
'id_name' => 'parent_id',
'vname' => 'LBL_LIST_RELATED_TO',
'type' => 'parent',
'group' => 'parent_name',
'source' => 'non-db',
'options' => 'parent_type_display',
'studio' => true,
),
'parent_id' => array(
'name' => 'parent_id',
'type' => 'id',
'group' => 'parent_name',
'reportable' => false,
'vname' => 'LBL_PARENT_ID',
),
I have not done this, but I believe you can override the parent options with your own list based off of parent_type_display.
So you could create your own dropdown list without Quotes, call it parent_type_no_quote_display (or whatever name suits your needs)
then in custom/Extension/modules/Tasks/Ext/Vardefs/. create a file for your override tasks_parent_override.php
$dictionary['Task']['fields']['parent_type']['options'] = 'parent_type_no_quote_display';
$dictionary['Task']['fields']['parent_name']['options'] = 'parent_type_no_quote_display';
Do a quick repair rebuild and you should see your new parent list take effect.
HTH
FrancescaS
Thanks Francesca Shiekh this worked.