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

[Attribute] Fixed some minor issues with attributes #3921

Merged
merged 1 commit into from
Jan 20, 2016

Conversation

Zales0123
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets #3914, #3913
License MIT
Doc PR
  • changed dateTime field to datetime
  • removed weird oldhref from attribute choice element
  • removed broken __toString() from AttributeValue

- changed ``dateTime`` field to ``datetime``
- removed weird ``oldhref`` from attribute choice element
- removed broken ``__toString()`` from ``AttributeValue``
@@ -10,9 +10,9 @@
<div class="list-group row">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Zales0123,

I'm just updating our backend for an entity to use this attribute UI - looking good!

The only issue I'm having is that this line here is coupled to ProductAttributes (and I need to use it for a different model), as you can see from the routing:

sylius_backend_render_attribute_forms:
    path: /attribute-forms
    methods: [GET]
    defaults:
        _controller: sylius.controller.product_attribute:renderAttributeValueFormsAction

Is this something that you can look at?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I think we have one more coupling issue in the CompilerPass. It assumes there is product_attribute service and that's incorrect.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, these are things that have to be fixed 👍 I'm sure I can handle these issues in the nearest future.

pjedrzejewski pushed a commit that referenced this pull request Jan 20, 2016
[Attribute] Fixed some minor issues with attributes
@pjedrzejewski pjedrzejewski merged commit 76ead7a into Sylius:master Jan 20, 2016
@pjedrzejewski
Copy link
Member

Thanks Mateusz!

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

Successfully merging this pull request may close these issues.

None yet

3 participants