Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8f1ecc7d
authored
Jan 12, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
issue #778 fixed
parent
6a9e1c67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
5 deletions
sails/src/api/controllers/StudentController.js
sails/src/api/models/Student.js
sails/src/api/controllers/StudentController.js
View file @
8f1ecc7d
...
...
@@ -171,7 +171,7 @@ module.exports = {
License
.
activate
(
params
.
license_number
,
created
.
id
,
function
(
err
,
license
)
{
if
(
err
)
return
res
.
serverError
(
err
);
created
=
created
.
to
Object
();
created
=
created
.
to
JSON
();
created
.
license
=
license
.
toObject
();
return
res
.
ok
(
created
);
});
...
...
sails/src/api/models/Student.js
View file @
8f1ecc7d
...
...
@@ -176,7 +176,6 @@ module.exports = {
},
legend
:
false
,
legend_size
:
'normal'
,
pic
:
"defaultAvatar.jpg"
,
size
:
'large'
,
picto_background
:
'#0000ff'
,
tape_background
:
'#00ffff'
,
...
...
@@ -202,9 +201,6 @@ module.exports = {
}
});
}
if
(
typeof
validAttributes
.
pic
!==
'string'
)
{
delete
validAttributes
.
pic
;
}
if
(
typeof
validAttributes
.
input_selection
!==
'object'
)
{
delete
validAttributes
.
input_selection
;
}
else
{
...
...
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