tingobol / gii-template-collection

Automatically exported from code.google.com/p/gii-template-collection
0 stars 0 forks source link

miniCreate requests are not published and selected after create #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open CRUD with relation
2. miniCreate a new record
3. Close jui-Dialog

What is the expected output? What do you see instead?
The newly created record should appear in the dropdown and should be 
pre-selected.
None of both happens.

Original issue reported on code.google.com by schm...@usrbin.de on 9 Sep 2010 at 1:13

GoogleCodeExporter commented 9 years ago
Currently, the item is created, but the main page is not updated.
Miniforms will be deeply rewritten soon to fix this and other issues.

Original comment by rodrigo.coelho@gmail.com on 9 Sep 2010 at 1:54

GoogleCodeExporter commented 9 years ago
Miniforms will be rewritten.

Original comment by rodrigo.coelho@gmail.com on 9 Sep 2010 at 5:38

GoogleCodeExporter commented 9 years ago
Herbert assumed the task.

Original comment by rodrigo.coelho@gmail.com on 14 Sep 2010 at 2:49

GoogleCodeExporter commented 9 years ago
I just submitted a ticket that fixes this issue:
http://code.google.com/p/gii-template-collection/issues/detail?id=31

The only problem is that it uses the currently saved model data from the Db and 
not the current form.  The other option to this is to simply have the relations 
widget feed getOptions() the max ID of options that existed when the form was 
loaded and have getOptions() return any new options greater than that ID.  
After that you just .append() the option to the existing list instead of 
rewriting all options.

Original comment by s...@moedesigns.com on 25 Oct 2010 at 10:31