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
fdc9f100
authored
Feb 24, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
issue #965 fixed
parent
5927634d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
sails/src/api/controllers/StudentController.js
sails/src/api/models/Student.js
sails/src/api/controllers/StudentController.js
View file @
fdc9f100
...
...
@@ -1079,9 +1079,23 @@ module.exports = {
});
},
// update action
// update picto atributes for a studentPicto
//
/**
Updates the legend for all pictos in the vocabulary according to following
values:
- 'none': no legend is visualized
- 'normal': legend is in pictogram's foot
- 'full': no image, just the expression
@params {request} req {
id_stu: {integer} studentID,
legend_value: {string} 'none' | 'normal' | 'full'
}
@params {response} res {
id: {integer} studentID,
legend_value: {string} 'none' | 'normal' | 'full'
}
*/
update_legend
:
function
(
req
,
res
)
{
var
params
=
req
.
allParams
();
Student
.
update_legend
(
params
.
id_stu
,
params
.
legend_value
,
function
(
err
)
{
...
...
sails/src/api/models/Student.js
View file @
fdc9f100
...
...
@@ -540,7 +540,8 @@ module.exports = {
' (json_extract(attributes, \'$.id_cat\') LIKE \'null\' AND '
+
' json_extract(attributes, \'$.coord_y\') = 0 OR '
+
' json_extract(attributes, \'$.id_cat\') NOT LIKE \'null\' AND '
+
' json_extract(attributes, \'$.coord_y\') > 0); '
' json_extract(attributes, \'$.coord_y\') >= 0 OR '
+
' json_extract(attributes, \'$.free_category_coord_y\') NOT LIKE \'null\');'
;
StuPicto
.
query
(
query
,
function
(
err
,
result
)
{
...
...
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