Loopcast / beta

1 stars 0 forks source link

location attribute as an empty array #571

Closed stefanoortisi closed 8 years ago

stefanoortisi commented 8 years ago

Hey @hems I still get some wrong default values for location and other attributes on my profile page

schermata 2015-10-29 alle 09 37 44

Could you have a look?

stefanoortisi commented 8 years ago

I think "location" and "about" are the wrong ones

hems commented 8 years ago

i searched for "location" on the code and it's always a string!

i saw you added check_input function on the backend to enforce it to be a string, but i believe if you need this better to do on the frontend only since on the backend it's always a string now?

can i delete the database again and remove the check_input from the backend so we see if that still happens?

thanks!

stefanoortisi commented 8 years ago

yeah i dont know why my profile had the location as an array. Anyway yeah, you can wipe the database and try without check_input :+1:

hems commented 8 years ago

i removed the "check_input" from the backend code, you could move it to the frontend folder and we can try it again and figure out why this empty array is happening.

i checked the code on the backend and it seems that everything is a String, so not sure how this happens again //=

let's find the problem so then we don't need to have this little hack!

peace

hems commented 8 years ago

@stefanoortisi i removed all the default attributes as Array and we deleted the database, let me know if it happens again for you.

it should not get any hack anywhere! it should be string everywhere and just work!