0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-11-21 23:47:57 +00:00
salesagility_SuiteCRM/modules/AOR_Scheduled_Reports/metadata/popupdefs.php
Christoph Reiter 4ca366981e Scheduled Reports: Fix report name relation and popup search
Both problems resulted in the popup search not showing anything and erroring out,
the report name being empty in the list view and sorting by the report name would
break the module because it would throw SQL errors without any way to recover and undo
the sorting.

This includes the following fixes for all of the above:

* Fix the link id to point to the link
* Rename the "aor_report_name" field in the search popup to match the vardef
* Remove the "email" field in the search popup which doesn't exist in the vardef.
2019-09-10 10:51:08 +02:00

31 lines
690 B
PHP

<?php
$popupMeta = array(
'moduleMain' => 'AOR_Scheduled_Reports',
'varName' => 'AOR_Scheduled_Reports',
'orderBy' => 'aor_scheduled_reports.name',
'whereClauses' => array(
'name' => 'aor_scheduled_reports.name',
'aor_report_name' => 'aor_scheduled_reports.aor_report_name',
),
'searchInputs' => array(
0 => 'name',
5 => 'aor_report_name',
),
'searchdefs' => array(
'name' =>
array(
'name' => 'name',
'width' => '10%',
),
'aor_report_name' =>
array(
'type' => 'relate',
'link' => true,
'label' => 'LBL_AOR_REPORT_NAME',
'id' => 'AOR_REPORTSAOR_REPORTS_IDA',
'width' => '10%',
'name' => 'aor_report_name',
),
),
);