chrisvans / onbaristawebapp

Web App for Baristas to check in when they are on bar
0 stars 1 forks source link

barista checkin footer: not accurate on all Pages #30

Closed AJLeonardi closed 11 years ago

AJLeonardi commented 11 years ago

This works on teh home page, but not on the rest of the pages

trying to figure out a way to not have to pass that data from every view function.

chrisvans commented 11 years ago

So, we did have to pass it from the 3 main views. Also, similar to the issue solved today, the object that was pointed to was the companyLocation, instead of the Company itself. I also noticed an error in my code that pointed to the barista's UserProfile object instead of their User object, and then sorted by that. Luckily the two methods I created in companyLocation allowed for an easy fix, so that we could remotely add the method to the dictionary rather than creating a custom method within each view.

chrisvans commented 11 years ago

Meant to say methods in UserProfile, not companyLocation.