GithubHelp home page GithubHelp logo

Comments (4)

janhartigan avatar janhartigan commented on June 9, 2024

Hey @demogar, could you describe the issue in a little more detail? What steps can I take to reproduce this?

from laravel-administrator.

demogar avatar demogar commented on June 9, 2024

Sure, sorry for that. I'll try to be as clear as possible, let me know if it makes sense.

Description of the issue:

The field that is related to the model is not being updated after selecting a new object on the dropdown.

Steps to reproduce:

  • Create a model that has a self-relationship
  • Create a new record for that model (I created it on the DB directly by importing a CSV, so I'm not sure if it creates the object perfectly).
  • Now update the model, by selecting a different "parent" (the field that is related to itself) from the dropdown.

Expected behaviour:

When a new record foreign record is selected (the field that belongs to itself, for example) the records needs to be updated with the new information.

from laravel-administrator.

janhartigan avatar janhartigan commented on June 9, 2024

Thanks for adding some more detail. However, I'm still having a hard time replicating this. So let me get this straight:

  • you created a new record using a CSV import. What fields are in this import? What's the name of the field you're trying to update? What values are in the fields when you import it?
  • you then open up the admin interface...does it initially show you the correct value? What value do you try to change it to? What happens after you hit save? Does it save the other fields?

More info that would be helpful:

  • Your Eloquent and admin models
  • Your db schema and maybe a screenshot of the rows in question in phpmyadmin

Thanks again!

from laravel-administrator.

janhartigan avatar janhartigan commented on June 9, 2024

I'm closing this for now. Let me know if you've still got problems!

from laravel-administrator.

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.