Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TimeOut
TimeOutAdmin
Commits
02ddcbed
Commit
02ddcbed
authored
Nov 13, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t : category api issue : uat
parent
68663f03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Webservice_model.php
application/models/Webservice_model.php
+2
-2
No files found.
application/models/Webservice_model.php
View file @
02ddcbed
...
...
@@ -713,13 +713,13 @@ class Webservice_model extends CI_Model {
$where
=
''
;
$countryData
=
$this
->
getCountryData
(
$user_id
);
$lang
=
$countryData
[
'language_code'
];
if
(
isset
(
$data
[
'query'
]))
{
if
(
isset
(
$data
[
'query'
])
&&
!
empty
(
$data
[
'query'
])
)
{
$where
=
' AND TC.category_name LIKE '
.
"'%"
.
$data
[
'query'
]
.
'%'
.
"'"
;
}
$sql
=
"SELECT TC.category_id,TC.category_name,TC.category_image
FROM translator_category AS TC
INNER JOIN event_category AS ECAT ON (ECAT.cat_id=TC.category_id)
WHERE ECAT.status = 1 AND
TC.language_code='
$lang
'
$where
WHERE ECAT.status = 1 AND
(TC.language_code='
$lang
' OR TC.language_code='EN')
$where
GROUP BY ECAT.cat_id ORDER BY ECAT.priority"
;
$result
=
$this
->
db
->
query
(
$sql
)
->
result
();
if
(
count
(
$result
)
>
0
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment