Make transaction_old and transaction_new searchable. (#6258)

* Make transaction_old and transaction_new searchable.

* Update database_transactions.php
This commit is contained in:
FusionPBX 2022-01-23 18:47:20 -07:00 committed by GitHub
parent d67b9597f1
commit 700f4748fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -112,12 +112,14 @@
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "longtext";
$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Before the transaction.";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "transaction_new";
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "longtext";
$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "After the transaction.";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "transaction_result";

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2016 - 2019
Portions created by the Initial Developer are Copyright (C) 2016 - 2021
the Initial Developer. All Rights Reserved.
Contributor(s):
@ -57,6 +57,8 @@
$sql_search .= " or lower(t.transaction_address) like :search ";
$sql_search .= " or lower(t.transaction_type) like :search ";
$sql_search .= " or cast(t.transaction_date as text) like :search ";
$sql_search .= " or lower(t.transaction_old) like :search ";
$sql_search .= " or lower(t.transaction_new) like :search ";
$sql_search .= " or lower(u.username) like :search ";
$sql_search .= ") ";
$parameters['search'] = '%'.$search.'%';