Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

yotta / pictogram

  • This project
    • Loading...
  • Sign in
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
Closed
Open
Issue #185 opened Apr 27, 2017 by Germán Callejas Alcántara@callejas 
  • New issue
New issue

User_avatar devuelve "null" en lugar de "___________________" o null por defecto al crear el vocabulario de un nuevo alumno

  • Germán Callejas Alcántara @callejas commented May 02, 2017

    Mirar el modelo en el servidor para ver qué devuelve @jalr0005 @scollado

    Mirar el modelo en el servidor para ver qué devuelve @jalr0005 @scollado
  • Germán Callejas Alcántara @callejas

    changed title from Cambiar constructor de Picto para que user_avatar no se cree a null sino a "___________________" por defecto al crear el vocabulario de un nuevo alumno to User_avatar devuelve "null" en lugar de "___________________" o null por defecto al crear el vocabulario de un nuevo alumno

    May 02, 2017

    changed title from Cambiar constructor de Picto para que user_avatar no se cree a null sino a "___________________" por defecto al crear el vocabulario de un nuevo alumno to User_avatar devuelve "null" en lugar de "___________________" o null por defecto al crear el vocabulario de un nuevo alumno

    changed title from **{-Cambiar constructor de Picto para que user_avatar no se cree a null sino a "___________________"-} por defecto al crear el vocabulario de un nuevo alumno** to **{+User_avatar devuelve "null" en lugar de "___________________" o null+} por defecto al crear el vocabulario de un nuevo alumno**
    Toggle commit list
  • Germán Callejas Alcántara @callejas

    assigned to @jalr0005

    May 02, 2017

    assigned to @jalr0005

    assigned to @jalr0005
    Toggle commit list
  • Jose Antonio @jlrufian commented May 02, 2017

    Cuando se crea un nuevo stu_picto en la API, en el método getValidAttributes del modelo StuPicto se establece como null. Cuando se crea el vocabulario desde el core, no hay ningún campo que sea user_avatar. La API devuelve null:

    { "id": 5347, "picto": { "id": 2982, "uri": "/symbolstx/color/png/descriptives/yes.png", "category": 9, "source": 1, "owner": null }, "attributes": { "id_cat": null, "coord_x": 0, "coord_y": 0, "free_category_coord_x": null, "free_category_coord_y": null, "status": "enabled", "highlight": false, "color": null, "expression": "sí", "legend": "none", "uri_sound": null, "user_avatar": null }, "tags": [] }

    Cuando se crea un nuevo stu_picto en la API, en el método getValidAttributes del modelo StuPicto se establece como null. Cuando se crea el vocabulario desde el core, no hay ningún campo que sea user_avatar. La API devuelve null: `{ "id": 5347, "picto": { "id": 2982, "uri": "/symbolstx/color/png/descriptives/yes.png", "category": 9, "source": 1, "owner": null }, "attributes": { "id_cat": null, "coord_x": 0, "coord_y": 0, "free_category_coord_x": null, "free_category_coord_y": null, "status": "enabled", "highlight": false, "color": null, "expression": "sí", "legend": "none", "uri_sound": null, "user_avatar": null }, "tags": [] }`
  • Jose Antonio @jlrufian commented May 02, 2017

    Añado al método pictos del modelo Scene dos comprobaciones antes de enviar el stu_picto para añadirles los campos uri_sound y user_avatar.

    Añado al método pictos del modelo Scene dos comprobaciones antes de enviar el stu_picto para añadirles los campos uri_sound y user_avatar.
  • Jose Antonio @jlrufian

    mentioned in commit 153e6af3

    May 02, 2017

    mentioned in commit 153e6af3

    mentioned in commit 153e6af351e415fc6c70c1ebd23221b4f4d58c89
    Toggle commit list
  • Jose Antonio @jlrufian

    closed

    May 02, 2017

    closed

    closed
    Toggle commit list
  • Write
  • Preview
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
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
1
Labels
Android
Assign labels
  • View labels
3
3 participants
Reference: yotta/pictogram#185