From da3dc228d9b4ddf70ed2840002bc8d099603f0f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVeLiTi=E2=80=9D?= <“info@veliti.nl”> Date: Fri, 5 Apr 2024 14:10:07 +0200 Subject: [PATCH] CIM63 - asset search on email --- accounts.php | 3 +++ api/v1/get/history.php | 2 +- communication.php | 17 +++++++++++++++-- communications.php | 3 +++ histories.php | 9 ++++++++- 5 files changed, 30 insertions(+), 4 deletions(-) diff --git a/accounts.php b/accounts.php index ea2d63c..a79c640 100644 --- a/accounts.php +++ b/accounts.php @@ -8,6 +8,9 @@ defined(page_security_key) or exit; include_once './assets/functions.php'; include_once './settings/settings.php'; +//SET ORIGIN FOR NAVIGATION +$_SESSION['prev_origin'] = ''; + //Check if allowed if (isAllowed('accounts',$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ header('location: index.php'); diff --git a/api/v1/get/history.php b/api/v1/get/history.php index 869562f..22fbb8f 100644 --- a/api/v1/get/history.php +++ b/api/v1/get/history.php @@ -61,7 +61,7 @@ if(isset($get_content) && $get_content!=''){ } elseif ($v[0] == 'search') { //build up search - $clause .= ' AND h.rowID like :'.$v[0]; + $clause .= ' AND (h.rowID like :'.$v[0].' OR h.createdby like :'.$v[0].')'; } else {//create clause $clause .= ' AND '.$v[0].' = :'.$v[0]; diff --git a/communication.php b/communication.php index 8294ed6..4169a78 100644 --- a/communication.php +++ b/communication.php @@ -1,7 +1,10 @@ '; +//GET PARTNERID +$view_partners = ''; +if(isset($communication['partnerID']) && $communication['partnerID'] !=''){ + $partner_ID = strtok($communication['partnerID'],'-'); + $view_partners = ' + + '.$button_view.''; +} + $view .= '
' . $description . '