RaVeR76 / The-Kicks-Fix

Are you tired of searching for your kicks online? Well, look no further my friend ........ The Kicks Fix has you covered :)
1 stars 2 forks source link

Types Disappeared After First Selection #17

Closed RaVeR76 closed 2 years ago

RaVeR76 commented 2 years ago

When I chose a Type from the Accessory menu, it displayed ALL the accessories of that type but when I went to the sub menu again to choose another type my list of types had vanished. I checked my code & found the issue quite quickly thankfully !

RaVeR76 commented 2 years ago

In my accessories views, I had created a Type filter for when the user had selected a type from the navbar submenu. I had called my GET variable 'types' so when I put this in the context it override my initial 'types' variable for ALL types. I simply changed my GET variable to 'chosen_type' & this solved the issue.