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
8e44938c
Commit
8e44938c
authored
Dec 31, 2018
by
Tobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'dev_production'
daily commit See merge request
!3
parents
e90ca822
e1d52bec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
Issue.php
application/controllers/Issue.php
+1
-2
Mechanic.php
application/controllers/Mechanic.php
+2
-1
Issue_model.php
application/models/Issue_model.php
+1
-2
custom-script.js
assets/js/custom-script.js
+1
-1
No files found.
application/controllers/Issue.php
View file @
8e44938c
...
@@ -484,4 +484,4 @@ class Issue extends CI_Controller {
...
@@ -484,4 +484,4 @@ class Issue extends CI_Controller {
return
$custData
;
return
$custData
;
}
}
}
}
?>
?>
\ No newline at end of file
application/controllers/Mechanic.php
View file @
8e44938c
...
@@ -46,7 +46,8 @@ class Mechanic extends CI_Controller {
...
@@ -46,7 +46,8 @@ class Mechanic extends CI_Controller {
!
is_numeric
(
$mechanic_id
=
decode_param
(
$_POST
[
'mechanic_id'
]))){
!
is_numeric
(
$mechanic_id
=
decode_param
(
$_POST
[
'mechanic_id'
]))){
echo
json_encode
(
$resArr
);
exit
;
echo
json_encode
(
$resArr
);
exit
;
}
}
$mechData
=
$this
->
Mechanic_model
->
getMechanic
(
$mechanic_id
);
$view_all
=
(
isset
(
$_POST
[
'view_all'
])
&&
$_POST
[
'view_all'
]
==
1
)
?
1
:
0
;
$mechData
=
$this
->
Mechanic_model
->
getMechanic
(
$mechanic_id
,
$view_all
);
if
(
empty
(
$mechData
)){
if
(
empty
(
$mechData
)){
echo
json_encode
(
$resArr
);
exit
;
echo
json_encode
(
$resArr
);
exit
;
...
...
application/models/Issue_model.php
View file @
8e44938c
...
@@ -197,4 +197,4 @@ class Issue_model extends CI_Model {
...
@@ -197,4 +197,4 @@ class Issue_model extends CI_Model {
}
}
}
}
?>
?>
\ No newline at end of file
assets/js/custom-script.js
View file @
8e44938c
...
@@ -103,7 +103,7 @@ jQuery('[id="viewMechanic"]').on('click',function() {
...
@@ -103,7 +103,7 @@ jQuery('[id="viewMechanic"]').on('click',function() {
jQuery
.
ajax
({
jQuery
.
ajax
({
url
:
base_url
+
"Mechanic/getMechanicData"
,
url
:
base_url
+
"Mechanic/getMechanicData"
,
type
:
'POST'
,
type
:
'POST'
,
data
:
{
'mechanic_id'
:
mechanic_id
},
data
:
{
'mechanic_id'
:
mechanic_id
,
'view_all'
:
'1'
},
success
:
function
(
resp
){
success
:
function
(
resp
){
if
(
resp
==
''
||
resp
==
undefined
||
resp
==
'undefined'
||
resp
==
null
||
resp
==
'null'
){
if
(
resp
==
''
||
resp
==
undefined
||
resp
==
'undefined'
||
resp
==
null
||
resp
==
'null'
){
remModalLoader
();
remModalLoader
();
...
...
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