Skip to content

Commit

Permalink
Add deprecation warning.
Browse files Browse the repository at this point in the history
On digging into this export function I cannot find any way to access these lines.

If no-one else can spot a way I propose adding a deprecation notice & later removing
  • Loading branch information
eileenmcnaughton committed Nov 25, 2019
1 parent 745a16c commit 77b6834
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Core/Selector/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ public function run() {
CRM_Utils_Hook::searchColumns($contextName, $columnHeaders, $rows, $this);
if ($this->_output == self::EXPORT) {
// export the rows.
CRM_Core_Error::deprecatedFunctionWarning('This code is believed to be unreachable & to be later removed. Please log how you reached it in gitlab');
CRM_Core_Report_Excel::writeCSVFile($this->_object->getExportFileName(),
$columnHeaders,
$rows
Expand Down

0 comments on commit 77b6834

Please sign in to comment.