Comments (4)
Hey @demogar, could you describe the issue in a little more detail? What steps can I take to reproduce this?
from laravel-administrator.
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.
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.
I'm closing this for now. Let me know if you've still got problems!
from laravel-administrator.
Related Issues (20)
- how to upload mp3 file and get its duration in laravel 4.2 HOT 1
- add persian (farsi) language
- Domain HOT 3
- WYSIWYG: disable remove class
- Laravel 5.3 Mysql Strict Compatibly Issue HOT 2
- Frozennode.com HOT 10
- edit_fields in type "relationship" doesn't work when foreign key is a non-primary key.
- Response::download not work in global action HOT 1
- error "MethodNotAllowedHttpException in RouteCollection.php line 218:" on laravel 5.3
- Add field type "array"
- How to change column value depending on selection of other field using relationship field
- Trying to change the value of uri in administartor.php returns InvalidArgumentException in UrlGenerator.php line 307: Route [admin_dashboard] not defined. HOT 2
- documentation HOT 1
- Laravel 5.4 support HOT 6
- File Download Dialog does not trigger in Chrome 57 HOT 4
- Master / Child form
- Pulling out of this project HOT 1
- can't register provider in config/app.php
- ERROR: Function name must be a string
- PHP 7.2.4 sizeof(): Parameter must be an array or an object that implements Countable HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-administrator.