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
35e64468
Commit
35e64468
authored
5 years ago
by
Tobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jansa' into 'master'
Jansa See merge request
!132
parents
de777aba
4afa3c8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Organizer_model.php
application/models/Organizer_model.php
+8
-3
No files found.
application/models/Organizer_model.php
View file @
35e64468
...
...
@@ -103,7 +103,11 @@ class Organizer_model extends CI_Model {
$resData
[
'venue_name'
]
=
$result
->
venue_name
;
$resData
[
'location'
]
=
$result
->
location
;
$resData
[
'booking_limit'
]
=
$result
->
max_booking
;
$resData
[
'about_ticket'
]
=
$result
->
seat_pricing
;
$resData
[
'layout_type'
]
=
(
!
empty
(
$result
->
seat_pricing
))
?
'2'
:
'1'
;
if
(
$resData
[
'layout_type'
]
==
'2'
){
$resData
[
'layout_pricing'
]
=
$event_layout
;
$resData
[
'layout_image'
]
=
$result
->
layout
;
}
if
(
!
empty
(
$result
->
tag_ids
)
&&
!
empty
(
$tag_ids
=
explode
(
','
,
$result
->
tag_ids
))){
foreach
(
$tag_ids
AS
$key
=>
$id
)
{
$tags
=
langTranslator
(
$id
,
'TAG'
,
'EN'
);
...
...
@@ -806,12 +810,13 @@ class Organizer_model extends CI_Model {
$evData
[
'layout_details'
][
'layout_image'
]
=
$evData
[
'layout'
];
}
else
{
$seatlyt
=
json_decode
(
$evData
[
'seat_pricing'
]);
//
$priceArr = array();
$priceArr
=
array
();
foreach
(
$language
as
$lang
)
{
if
(
!
isset
(
$seatlyt
->
{
'price_details_'
.
$lang
})){
continue
;
}
$priceArr
[]
=
array
(
'lang'
=>
$lang
,
'desc'
=>
$seatlyt
->
{
'price_details_'
.
$lang
});
$desc
=
(
!
empty
(
$seatlyt
->
{
'price_details_'
.
$lang
}))
?
$seatlyt
->
{
'price_details_'
.
$lang
}
:
''
;
$priceArr
[]
=
array
(
'lang'
=>
$lang
,
'desc'
=>
$desc
);
unset
(
$seatlyt
->
{
'price_details_'
.
$lang
});
}
$seatlyt
->
about_price_division
=
$priceArr
;
...
...
This diff is collapsed.
Click to expand it.
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