Git Product home page Git Product logo

Comments (8)

a-laurowski avatar a-laurowski commented on August 19, 2024 1

@m-schiewi the v4.1.0 is out https://github.com/FACT-Finder-Web-Components/oxid-eshop-module/releases/tag/v4.1.0

from oxid-eshop-module.

a-laurowski avatar a-laurowski commented on August 19, 2024

Hi @bissie and thanks for reporting.
This is going to be fixed in next release

from oxid-eshop-module.

m-schiewi avatar m-schiewi commented on August 19, 2024

Issue not fixed in 4.1.0

steps to reproduce:

  • create an attribute in shop titled "Webhop Label '%'"
  • insert line console.log(newValue) after attribute-rows.js:41
  • notice that string newValue ends like ".... Webshop Label " leaving out the percentage char and any characters following, consequently any attempt for JSON.parse() fails

-root cause can be found in views/admin/blocks/factfinder_config_field_attributes.tpl:5
[{$availableAttributes|@json_encode}] itself gives valid json but since the fact, that it's enclosed in single quotation like
available-attributes='[{$availableAttributes|@json_encode}]' it fails immedeately if $availableAttributes contains any quotation mark.

from oxid-eshop-module.

a-laurowski avatar a-laurowski commented on August 19, 2024

hi @m-schiewi
thanks for noticing that. It looks that smarty @json_encode does not properly encode that characters like " and ' and we need to use regular json_encode function with additional encoding flags before assigning to a template variable. This will be fixed in next release.

The 4.1.0 is not yet released. Currently is postponed as we are waiting for the WebComponents v4.0.7 to be released before.

from oxid-eshop-module.

a-laurowski avatar a-laurowski commented on August 19, 2024

hi @m-schiewi additional encoding is already in master.
4209dc4
With that fix, the attribute names containing apostrophes or quotes should not break the attribute rows component.
image
Version v4.1.0 will be released soon

from oxid-eshop-module.

m-schiewi avatar m-schiewi commented on August 19, 2024

@a-laurowski I am confused: 4.1.0 is listed at packagist and installed on my side...
grafik

from oxid-eshop-module.

a-laurowski avatar a-laurowski commented on August 19, 2024

hi @m-schiewi
the problem here is we already pushed the v4.1.0 tag on Wednesday because we were about to release but then, we postpone that. But since tag was already in repository it was automatically loaded by packagist. if you checked the release lists on github you would notice though, that last official release was 4.0.2, and v4.1.0 was still a draft, not visible as official release.
Sorry for inconvenience.
I will update you as soon as release is out

from oxid-eshop-module.

m-schiewi avatar m-schiewi commented on August 19, 2024

thanks a lot!

from oxid-eshop-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.