Database transactions
Change the select statement to a left outer join so when either domain_uuid or user_uuid is null it will still be able to display the data. This will keep the total number of records the same as the count done above * dos2unix on app/database_transactions/database_transactions.php
This commit is contained in:
parent
bc42f4fac3
commit
9abe2ca4a0
|
|
@ -90,10 +90,10 @@
|
|||
$sql = "select ";
|
||||
$sql .= "t.database_transaction_uuid, d.domain_name, u.username, t.user_uuid, t.app_name, t.app_uuid, ";
|
||||
$sql .= "t.transaction_code, t.transaction_address, t.transaction_type, t.transaction_date ";
|
||||
$sql .= "from v_database_transactions as t, v_domains as d, v_users as u ";
|
||||
$sql .= "from v_database_transactions as t ";
|
||||
$sql .= "LEFT OUTER JOIN v_domains as d USING (domain_uuid) ";
|
||||
$sql .= "LEFT OUTER JOIN v_users as u USING (user_uuid) ";
|
||||
$sql .= "where t.domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
||||
$sql .= "and t.user_uuid = u.user_uuid ";
|
||||
$sql .= "and t.domain_uuid = d.domain_uuid ";
|
||||
$sql .= $sql_search;
|
||||
if (strlen($order_by) == 0) {
|
||||
$sql .= "order by transaction_date desc ";
|
||||
|
|
|
|||
Loading…
Reference in New Issue