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 .= '
';
diff --git a/communications.php b/communications.php
index c96885e..fece8d9 100644
--- a/communications.php
+++ b/communications.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('communications',$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
header('location: index.php');
diff --git a/histories.php b/histories.php
index 4567456..e34c79e 100644
--- a/histories.php
+++ b/histories.php
@@ -8,8 +8,12 @@ defined(page_security_key) or exit;
include_once './assets/functions.php';
include_once './settings/settings.php';
+//SET ORIGIN FOR NAVIGATION
+$_SESSION['prev_origin'] = $_SERVER['REQUEST_URI'];
+$page = $_SESSION['origin'] = 'histories';
+
//Check if allowed
-if (isAllowed('histories',$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
+if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
header('location: index.php');
exit;
}
@@ -74,6 +78,7 @@ $view .= '
';
+
$view .= '
@@ -85,6 +90,7 @@ $view .= '
'.$history_label3.' |
'.$history_label4.' |
'.$history_label5.' |
+
'.$view_asset_actions.' |
@@ -109,6 +115,7 @@ $view .= '
'.$response->created.' |
'.$response->createdby.' |
' . $description . ' |
+ '.$general_view .' |
';
}