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
b46bb6d0
Commit
b46bb6d0
authored
5 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
J: changes in edit organization details
parent
ff861cc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Organizer_model.php
application/models/Organizer_model.php
+2
-1
No files found.
application/models/Organizer_model.php
View file @
b46bb6d0
...
...
@@ -214,6 +214,8 @@ class Organizer_model extends CI_Model {
if
(
!
empty
(
$postData
[
'event_id'
])){
$insertEventDate
=
array
();
if
(
isset
(
$postData
[
'show_type'
])
&&
!
empty
(
$postData
[
'show_type'
])){
$this
->
db
->
update
(
'event_date_time'
,
array
(
'status'
=>
'0'
),
array
(
'status'
=>
'1'
,
'event_id'
=>
$postData
[
'event_id'
]));
if
(
$postData
[
'show_type'
]
==
1
){
$date
=
$postData
[
'start_date'
];
foreach
(
json_decode
(
$postData
[
'show_timing'
])
AS
$time
)
{
...
...
@@ -229,7 +231,6 @@ class Organizer_model extends CI_Model {
$cdate
=
strtotime
(
$cdate
.
' +1 day'
);
}
}
$this
->
db
->
update
(
'event_date_time'
,
array
(
'status'
=>
'0'
),
array
(
'event_id'
=>
$postData
[
'event_id'
]));
$this
->
db
->
insert_batch
(
'event_date_time'
,
$insertEventDate
);
}
$insertTag
=
array
();
...
...
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