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
f867a7bd
Commit
f867a7bd
authored
5 years ago
by
Tobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'dev_production'
venue changes revert See merge request
!273
parents
0b2007f1
b1f6d427
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
OrganizerServices.php
application/controllers/OrganizerServices.php
+2
-4
Organizer_model.php
application/models/Organizer_model.php
+3
-0
No files found.
application/controllers/OrganizerServices.php
View file @
f867a7bd
...
...
@@ -28,9 +28,7 @@ class OrganizerServices extends CI_Controller {
$this
->
load
->
model
(
'Validation_organizer_model'
);
$method
=
$this
->
router
->
fetch_method
();
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
if
(
$method
==
'addEvent'
||
$method
==
'addCategory'
||
$method
==
'addCity'
||
$method
==
'editOrganizerCityDetails'
||
$method
==
'editOrganizerCategoryDetails'
||
$method
==
'editOrganizerVenueDetails'
)
{
if
(
$method
==
'addEvent'
||
$method
==
'addCategory'
||
$method
==
'addCity'
||
$method
==
'editOrganizerCityDetails'
||
$method
==
'editOrganizerCategoryDetails'
||
$method
==
"AddVenue"
||
$method
==
'editOrganizerVenueDetails'
)
{
$data
=
$_POST
;
}
if
(
isset
(
apache_request_headers
()[
'Auth'
]))
{
...
...
@@ -607,7 +605,7 @@ class OrganizerServices extends CI_Controller {
}
public
function
AddVenue
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
))
;
$data
=
$_POST
;
$res
=
$this
->
Organizer_model
->
AddVenue
(
$data
);
if
(
$res
[
'status'
]
!=
0
){
$this
->
successResponse
(
$res
);
...
...
This diff is collapsed.
Click to expand it.
application/models/Organizer_model.php
View file @
f867a7bd
...
...
@@ -1618,6 +1618,8 @@ class Organizer_model extends CI_Model {
if
(
$status
){
$venue_id
=
$this
->
db
->
insert_id
();
$insertArr
=
array
();
if
(
isset
(
$data
[
'venue_name'
])
&&
!
empty
(
$data
[
'venue_name'
])
&&
!
empty
(
$data
[
'venue_name'
]
=
json_decode
(
$data
[
'venue_name'
]))){
foreach
(
$data
[
'venue_name'
]
AS
$key
=>
$value
)
{
$insertArr
[]
=
array
(
'venue_id'
=>
$venue_id
,
'venue_name'
=>
$value
->
venue_name
,
...
...
@@ -1626,6 +1628,7 @@ class Organizer_model extends CI_Model {
if
(
!
empty
(
$insertArr
)){
$this
->
db
->
insert_batch
(
'translator_venue'
,
$insertArr
);
}
}
$res
=
array
(
'status'
=>
1
,
'message'
=>
'success'
);
}
}
catch
(
Exception
$e
){
...
...
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