scoumbourdis/grocery-crud — Issue #11: 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.
Author: scoumbourdis
Created: 2012-02-22 23:34:28+00:00
State: open

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.