Giter Club home page Giter Club logo

Comments (13)

beberlei avatar beberlei commented on May 23, 2024

that is version 4.x

from sonataadminbundle.

rande avatar rande commented on May 23, 2024

How can I reproduce the error ?

from sonataadminbundle.

beberlei avatar beberlei commented on May 23, 2024

Use firefox 4? Error keeps apearing on Firefox 5 aswell, reproduced on 3 machines now. They all have firebug as plugin aswell.

from sonataadminbundle.

rande avatar rande commented on May 23, 2024

I cannot reproduce the error ... can you provide me more information ?

from sonataadminbundle.

beberlei avatar beberlei commented on May 23, 2024

I have the following extensions installed on all machines that have this problem:

  • AutoFillForms
  • Firebug
  • Firephp
  • ColorPicker
  • Fireshot
  • HttpFox
  • YSLOW
  • WebDeveloper

I cant really say more, i click and firefox freezes, then crashes.

from sonataadminbundle.

Nenuial avatar Nenuial commented on May 23, 2024

UP !

I have the same problem in instances where I try to display one_to_many relations using the edit="inline" and inline="table" options. First the relations don't get displayed at all in that mode even though in edit="standard" I see them perfectly.
Trying to add a new entity using the + also fails (works in edit="standard") the error the ajax stumbles upon is the following :
Warning: Illegal offset type in isset or empty in /***/vendor/bundles/Sonata/AdminBundle/Form/ChoiceList/ModelChoiceList.php line 198

I know I could simply use the edit="standard" here as a solution, but it does not fit well for my case and "inline table" is really what I need !

from sonataadminbundle.

rande avatar rande commented on May 23, 2024

I need more information about how I can reproduce the bug!

from sonataadminbundle.

Nenuial avatar Nenuial commented on May 23, 2024

Hope you have everything with that :
http://pastie.textmate.org/2975931

from sonataadminbundle.

rande avatar rande commented on May 23, 2024

@beberlei @Nenuial I have updated the code to jQuery 1.7 and change some events management with crash my FF with the new version. Can you update the related bundles and check if your issue is now fixed ?

from sonataadminbundle.

Nenuial avatar Nenuial commented on May 23, 2024

@rande No changes. Then again, as I said in my previous comment. The problem does not come from the JS itself but from the fact that /***/vendor/bundles/Sonata/AdminBundle/Form/ChoiceList/ModelChoiceList.php throws an error! I believe the JS is doing its job, it's the script requested through ajax that is not working properly.

Did you try to do an "edit=inline, inline=table" with a one_to_may relation using sonata_type_model?

from sonataadminbundle.

rande avatar rande commented on May 23, 2024

I just try with the UserAdmin from SonataUserBundle and there is not issue. Can you try to output the key value in the ModelChoiceList ?

from sonataadminbundle.

Nenuial avatar Nenuial commented on May 23, 2024

The key value ? $key has the value string(1) "2"

from sonataadminbundle.

rande avatar rande commented on May 23, 2024

cannot reproduce

from sonataadminbundle.

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.