-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
FIX-472 broken product form for cyrillic taxonomy #475
FIX-472 broken product form for cyrillic taxonomy #475
Conversation
@@ -56,7 +56,8 @@ public function buildForm(FormBuilderInterface $builder, array $options) | |||
$builder->addModelTransformer(new TaxonSelectionToCollectionTransformer($taxonomies)); | |||
|
|||
foreach ($taxonomies as $taxonomy) { | |||
$builder->add(Urlizer::urlize($taxonomy->getName()), 'choice', array( | |||
/* @var $taxonomy Taxonomy*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to add the comment here, but i understand if it is just for autocomplete
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is for IDE, yes!
👍 👶 |
FIX-472 broken product form for cyrillic taxonomy
I think there is no better option than that for now, thanks Alex! |
A better option wouldn't be to update the |
@winzou Or maybe using Doctrine extension slugizer? I think it handles Cyrillic? |
@pjedrzejewski If you think about Gedmo ones, this PR just replaced them, so I guess that it was not working as expected =) @winzou My guess is that if pcre is not compiled with utf8 this will block that |
Guys, it should use transliterator, and than use Urlizer. So my first code was like |
@asidorov01 Your code looks (almost) acceptable (this in comment), I think that @pjedrzejewski IIUC this PR adds (IIRC this in the html spec) not acceptable characters into id's/names in html markup, so it's not correct fix IMO. |
I replaced name to id, this is much more safe, because name could have non-latin character.
See #472