Coder Social home page Coder Social logo

Comments (10)

lguichard avatar lguichard commented on June 8, 2024

Thanks for your feedback. It appears after recents changes on this commit 172f595

@ryanmitchell do you have an idea ?

I’ll review my code about TranslatedText

from lunar.

ryanmitchell avatar ryanmitchell commented on June 8, 2024

I don't see this error in alpha7 - saving works fine for me on translated fields.

from lunar.

jerwinaton avatar jerwinaton commented on June 8, 2024

Same issue here,

  • Lunar version: 1.0.0-alpha.7
  • Laravel Version: 10.43
  • PHP Version: 8.2
  • Database Driver & Version: MySql 8

Mine was when after creating a new product, and then update the brand or description.

You get the error

Lunar\FieldTypes\TranslatedText value must be a collection.

from lunar.

wch-andrzej-k avatar wch-andrzej-k commented on June 8, 2024

I have the same issue that occurs when I try to update the basic product data.

Lunar version: 1.0.0-alpha.7

from lunar.

olivierguerriat avatar olivierguerriat commented on June 8, 2024

I have a similar error with ListField on 1.0.0-alpha.8 (after further testing, it appears to be introduced by 1.0.0-alpha.6):

Lunar\FieldTypes\ListField value must be an array.

when saving a product variant's "basic information" page.

from lunar.

olivierguerriat avatar olivierguerriat commented on June 8, 2024

For ListField, 172f595 appears to override the dehydrateStateUsing function used in Support/FieldTypes/ListField.php.

But TranslatedText doesn't use dehydrateStateUsing itself.

from lunar.

bangnokia avatar bangnokia commented on June 8, 2024

I can confirm I got that too, when editting product and collection

from lunar.

alecritson avatar alecritson commented on June 8, 2024

I'm fairly certain (correct me if i'm wrong) but this is as a result of changing the type of the attribute after you have a product created. So it's not updated the attribute_data to be in the new format and so if you're going from TranslatedText to Text you will see [Object, Object] in the input field, but going from Text to TranslatedText you will get the error above? 🤔

from lunar.

wychoong avatar wychoong commented on June 8, 2024

@MedRochonTolle @olivierguerriat @bangnokia @wch-andrzej-k is this still an issue after updating to the latest release?

from lunar.

bangnokia avatar bangnokia commented on June 8, 2024

thank @wychoong, it fixed for me

from lunar.

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.