Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A really rare scenario: Adding the same middle name twice at two set_relation_n_n makes the form to not save the data properly. #11

Open
scoumbourdis opened this issue Feb 22, 2012 · 0 comments

Comments

@scoumbourdis
Copy link
Owner

If you have insert twice the same middle table name at two set_relation_n_n it doesn't save the form data.
This is a really rare scenario and it is probably a wrong database structure , but it is still an issue...

For example:

$crud->set_relation_n_n('strutture', 'relazioni', 'strutture', 'idMultimedia', 'idStruttura', 'ramo');
$crud->set_relation_n_n('contenuti', 'relazioni', 'contenuti', 'idMultimedia', 'idContenuto', 'titolo','posizione');

The middle table ( "relazioni") is added twice.

MajorAchilles added a commit to MajorAchilles/grocery-crud that referenced this issue Sep 28, 2016
Login DB Connection, Autocomplete Model use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant