Make transaction_old and transaction_new searchable. (#6258)
* Make transaction_old and transaction_new searchable. * Update database_transactions.php
This commit is contained in:
parent
d67b9597f1
commit
700f4748fb
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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.'%';
|
||||
|
|
|
|||
Loading…
Reference in New Issue