Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcarfixers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
Tobin
dcarfixers
Commits
9304bf2f
Commit
9304bf2f
authored
6 years ago
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
ebb43da9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Issue.php
application/controllers/Issue.php
+2
-2
Webservices.php
application/controllers/Webservices.php
+1
-1
custom-script.js
assets/js/custom-script.js
+2
-2
No files found.
application/controllers/Issue.php
View file @
9304bf2f
...
...
@@ -336,7 +336,7 @@ class Issue extends CI_Controller {
}
}
function
viewMappedIssues
(
$mechanic_id
=
''
){
public
function
viewMappedIssues
(
$mechanic_id
=
''
){
if
(
!
empty
(
$mechanic_id
)){
$mechanic_id
=
(
!
is_numeric
(
$mechanic_id
))
?
decode_param
(
$mechanic_id
)
:
$mechanic_id
;
}
...
...
@@ -364,7 +364,7 @@ class Issue extends CI_Controller {
$this
->
load
->
view
(
'template'
,
$template
);
}
function
changeMappedIssueStatus
(
$mechanic_id
=
''
,
$issue_id
=
''
,
$status
=
'1'
){
public
function
changeMappedIssueStatus
(
$mechanic_id
=
''
,
$issue_id
=
''
,
$status
=
'1'
){
$flashMsg
=
array
(
'message'
=>
'Something went wrong, please try again..!'
,
'class'
=>
'error'
);
if
(
empty
(
$issue_id
)
||
!
is_numeric
(
$issue_id
=
decode_param
(
$issue_id
))
||
empty
(
$mechanic_id
)
||
!
is_numeric
(
$mechanic_id
=
decode_param
(
$mechanic_id
))){
...
...
This diff is collapsed.
Click to expand it.
application/controllers/Webservices.php
View file @
9304bf2f
...
...
@@ -237,7 +237,7 @@ class Webservices extends CI_Controller {
$respArr
=
array
(
'status'
=>
'0'
,
'message'
=>
'Something went wrong.'
);
if
(
empty
(
$postData
)
||
empty
(
$postData
=
json_decode
(
$postData
[
'data'
],
true
))
||
!
isset
(
$postData
[
'cost'
])
||
empty
(
$postData
[
'cost'
])
||
!
isset
(
$postData
[
'cost'
])
||
empty
(
$postData
[
'cost'
])
||
!
isset
(
$postData
[
'customer_id'
])
||
empty
(
$postData
[
'customer_id'
])
||
!
isset
(
$postData
[
'mechanic_id'
])
||
empty
(
$postData
[
'mechanic_id'
])
||
!
isset
(
$postData
[
'pickup_data'
])
||
empty
(
$postData
[
'pickup_data'
])
||
...
...
This diff is collapsed.
Click to expand it.
assets/js/custom-script.js
View file @
9304bf2f
...
...
@@ -796,7 +796,7 @@ jQuery('[id="showBookinDetails"]').on('click',function() {
if
(
issues_selected
!=
''
){
var
comma
=
''
;
issueHtml
=
'<div class="col-md-12" style="padding-top:
10px;">'
+
issueHtml
=
'<div class="col-md-12" style="padding-top:10px;">'
+
'<div class="row"><label>Selected Issue</label></div>'
+
'<div class="row">'
+
'<div class="col-md-1"></div>'
+
...
...
@@ -809,7 +809,7 @@ jQuery('[id="showBookinDetails"]').on('click',function() {
}
if
(
optional_data
!=
''
){
optionalHtml
=
'<div class="col-md-12" style="padding-top:
20px;">'
+
optionalHtml
=
'<div class="col-md-12" style="padding-top:20px;">'
+
'<div class="row"><label>Additional Information</label></div>'
;
if
(
optional_data
[
'optionlaDescription'
]
!=
''
){
...
...
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