issue #965 fixed

parent 5927634d
......@@ -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) {
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment