Start with a 0.7.9 RC5 fresh install,register an account and place an order. In admin homepage check last order box: it shows correctly 1 last order.
Install a new language (example, german),set admin language to german, go to admin -> hompage
1) Statistics box shows correctrly 1 order
2) Last order box doesn't shows anything
3) admin/index.php?controller=order doesn't show anything either
the only way to shows order list is to set the admin language to english
I tried to place another order with all product's information filled for the new language. Same issue.
Yea, to be honest I've recently been looking at the way we pull data from the db.. all queries seem to be using this "where language_id = $language->getId()" which is absolutely wrong as you won't see things if there is no language for them
We need to get ALL results and then filter the ones that have the current language. If they don't have a record with the current language, then fallback to english. I've got this working and prototyped on my dev setup and it is my main focus. But it's a sizable change and won't make it into 079, but should be in the first release of 0.8
However, you shouldn't be seeing 2 records in the order table. I will take a look at that today
We need to get ALL results and then filter the ones that have the current language. If they don't have a record with the current language, then fallback to english. I've got this working and prototyped on my dev setup and it is my main focus. But it's a sizable change and won't make it into 079, but should be in the first release of 0.8
However, you shouldn't be seeing 2 records in the order table. I will take a look at that today
Last edited by Qphoria on Tue Dec 16, 2008 10:07 pm, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 25 guests