solving problem with picto expressions (issue #478)

parent 154e0e3c
Showing with 1 additions and 1 deletions
...@@ -90,7 +90,7 @@ module.exports = { ...@@ -90,7 +90,7 @@ module.exports = {
.then((picto) => { .then((picto) => {
// check picto has expressions associated manually or associated in student language // check picto has expressions associated manually or associated in student language
if (!picto.attributes.expression & (picto.expressions.length == 0 || picto.expressions[0].text.length == 0)) if (!stuPicto.attributes.expression & (picto.expressions.length == 0 || picto.expressions[0].text.length == 0))
stuPicto.attributes.expression = sails.__({ stuPicto.attributes.expression = sails.__({
phrase: 'undef_label', phrase: 'undef_label',
locale: student.lang}); locale: student.lang});
......
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