Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
gredu_labs
Commits
b874d52b
Commit
b874d52b
authored
Mar 01, 2016
by
Georgios Tsakalos
Browse files
fix bugs in software service
parent
79cc765b
Changes
1
Hide whitespace changes
Inline
Side-by-side
module/schools/src/Service/SoftwareService.php
View file @
b874d52b
...
...
@@ -55,12 +55,16 @@ class SoftwareService implements SoftwareServiceInterface
if
(
!
$software
->
id
)
{
throw
new
\
InvalidArgumentException
(
'No software found'
);
}
$this
->
persistSoftware
(
$software
,
$
i
d
);
$this
->
persistSoftware
(
$software
,
$d
ata
);
return
$software
->
export
();
}
private
function
persistSoftware
(
$software
,
array
$data
)
{
if
(
!
$data
[
'lab_id'
]){
$data
[
'lab_id'
]
=
NULL
;
}
$software
->
softwarecategory_id
=
$data
[
'softwarecategory'
];
$software
->
school_id
=
$data
[
'school_id'
];
$software
->
lab_id
=
$data
[
'lab_id'
];
...
...
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