Commit 7cdbf64d by Jansa Jose

J : favourite list

parent f94889c3
...@@ -1264,7 +1264,7 @@ class Webservice_model extends CI_Model { ...@@ -1264,7 +1264,7 @@ class Webservice_model extends CI_Model {
$this->db->query("SET SESSION group_concat_max_len = 200000"); $this->db->query("SET SESSION group_concat_max_len = 200000");
$result = $this->db->query(" $result = $this->db->query("
SELECT (SELECT COUNT(booking.id) FROM booking WHERE booking.event_id=events.event_id) AS SELECT (SELECT COUNT(booking.id) FROM booking WHERE booking.event_id=events.event_id) AS
attendees, events.event_id, event_gallery.media_url,event_category.cat_id, attendees, events.event_id,events.has_payment, event_gallery.media_url,event_category.cat_id,
CAST(AVG (review.rate) AS DECIMAL (12, 1)) AS rating, CAST(AVG (review.rate) AS DECIMAL (12, 1)) AS rating,
venue.location, IF(favourite.is_favorite = 0, 'false', 'true') AS is_favorite, venue.location, IF(favourite.is_favorite = 0, 'false', 'true') AS is_favorite,
IF(events.provider_id = 0, 'false', 'true') AS is_editors_choice, IF(events.provider_id = 0, 'false', 'true') AS is_editors_choice,
...@@ -1337,7 +1337,8 @@ class Webservice_model extends CI_Model { ...@@ -1337,7 +1337,8 @@ class Webservice_model extends CI_Model {
'location'=>$rs->location, 'location'=>$rs->location,
'is_favorite'=>$rs->is_favorite === 'true'? true: false, 'is_favorite'=>$rs->is_favorite === 'true'? true: false,
'is_editors_choice'=>$rs->is_editors_choice === 'true'? true: false, 'is_editors_choice'=>$rs->is_editors_choice === 'true'? true: false,
'currency_symbol'=>$countryData['currency_symbol'] 'currency_symbol'=>$countryData['currency_symbol'],
'has_payment'=>$rs->has_payment
); );
array_push($response, $resData); array_push($response, $resData);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment