Skip to content
Snippets Groups Projects
Commit adb82a48 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #3121 change sql and add target entity_id

parent bb5de5b2
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,8 @@ $db = new Database();
$select = "select entity_label from ".ENT_ENTITIES;
$where = " where (lower(entity_label) like lower(?) ";
$where .= " or lower(short_label) like lower(?)) ";
$where .= " or lower(short_label) like lower(?) ";
$where .= " or lower(entity_id) like lower(?)) ";
if($_SESSION['user']['UserId'] != 'superadmin')
{
......@@ -32,7 +33,7 @@ if($_SESSION['user']['UserId'] != 'superadmin')
$sql = $select.$where." order by entity_id";
$stmt = $db->query($sql,array($_REQUEST['what']."%",$_REQUEST['what']."%"));
$stmt = $db->query($sql,array("%".$_REQUEST['what']."%","%".$_REQUEST['what']."%","%".$_REQUEST['what']."%"));
$entities = array();
while($line = $stmt->fetchObject())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment