Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pages Select Products and Sections #97

Closed
TELLO0815 opened this issue Nov 17, 2017 · 13 comments · Fixed by #123 or #124
Closed

Pages Select Products and Sections #97

TELLO0815 opened this issue Nov 17, 2017 · 13 comments · Fixed by #123 or #124
Labels

Comments

@TELLO0815
Copy link

There are not products or prepared sections in the select-menu.
Endless AJAX requests.

As example:

GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359857 | 667ms | 4596d2
-- | -- | -- | -- | -- | --
GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359856 | 267ms | 5d0764
GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359855 | 250ms | bacf43
GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359854 | 285ms | 04b45c
GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359853 | 353ms | 02da46
GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359852 | 244ms | e76459
GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359851 | 320ms | cd5d1d
GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359850 | 255ms | 0fc0

Any idea?
Mike

@bitbager
Copy link
Member

@patrick477, any idea?

@bitbager
Copy link
Member

As far as I am concerned, these requests are made on the keyup event in the products/sections association form field. From what I can see, they're referring to specific phrases. Are you typing them in the form field?

@TELLO0815
Copy link
Author

If i type them in - nothing found. (No results found.) When i press the arrow - endless request.

@benyang2015
Copy link

on the backend,admin user use the en_US language? if not, it will display no results found

@TELLO0815
Copy link
Author

@benyang2015 , no i don't use en_US at all. de_CH is what the Admin reads.

@benyang2015
Copy link

benyang2015 commented Dec 6, 2017

you can set the admin language to en_US,select the product you want,then set the admin language to de_CH

@benyang2015
Copy link

update to cmsplugin 1.2.2,can not select product and Sections!
display not result to find

@bitbager
Copy link
Member

@damonsson, @shinoks, could you guys give it a look?

@gnsimoes
Copy link

Hello,

I have the same problem!
I am using pt_PT language as a primary language on my system. When I want to select a section on block or page admin view, the background scripts cannot find any data.
The reason is because it is hardcoded on DI as en language, so you will never get any data at all. If try to see the profiler you will find the queries with language filter with "en".

It would be better the DI could get the system or the user session language...

@bitbager
Copy link
Member

Could you provide a PR with Behat scenario?

@rickberkers
Copy link

Channel locale is set to "nl" and when admin language is not set to "nl" it can't find sections or products in the page edit screen. Will this be fixed?

@kor3k
Copy link

kor3k commented Mar 15, 2018

I also confirm this. when admin user's locale differs from channel default locale, the product & section loaders cannot find anything

@damonsson
Copy link
Member

damonsson commented Mar 15, 2018

@thelegendtwentyseven Sure, we'll check and try fix it in the coming days cause we see that a lot of people have a problem with it.

Sections can be fixed right away, but for products to work, we need to do PR to Sylius itself. We want to release it together, so you can assume that the fix will come out with a new release of Sylius.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
7 participants