21283 Posts in 5730 Topics by 2602 members
General Questions
SilverStripe Forums » General Questions » ModelAdmin Loads incorrectly after adding a new item.
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 867 Views |
-
ModelAdmin Loads incorrectly after adding a new item.

26 March 2010 at 7:56pm
Clicking on either the 'Create' or 'Search' buttons after adding a new item using ModelAdmin causes the page to reload incorrectly. This doesn't happen after editing or deleting an existing item.
I'm using SS v2.3.7, the 2.3 branch of DOM and SWFUploadField, and the stable release of MultiForm. Here's my code http://pastie.org/887879 and I've attached a screen shot to illustrate the problem.
Any help identifying the source of the problem or a solution is appreciated.
Detailed Description
- Access 'Distributor' tab in the main CMS menu (it shows up next to 'Security')
- Click 'Create Distributor' button in the sidebar.
- Fill out fields and click 'Add' button.
- The page appears to reload just fine except that up until now the url has read 'mydomain.com/admin/distributors', now it reads 'mydomain.com/admin/distributors/Distributor/ID/edit' where ID is the DB id of the new item.
- Click either 'Create Distributor' or 'Search' in the sidebar.
- The page reloads looking like the image I linked and the URL changes once again.
- Access 'Distributor' tab in the main CMS menu (it shows up next to 'Security')
-
Re: ModelAdmin Loads incorrectly after adding a new item.

31 March 2010 at 8:39am
Hi,
i've same issue. I use TranslatableModelAdmin, but in normal ModelAdmin is same. So after many try's igot no fix. Some search results in forum doesn't help....
Has anyone a fix or howto, to solve the problem?
many thx
-
Re: ModelAdmin Loads incorrectly after adding a new item.

7 April 2010 at 5:32am
Same problem here, any insight would be wonderful.
Looks like a JS problem to be, some function isn't being attached correctly to the add action or isn't returning false.
| 867 Views | ||
|
Page:
1
|
Go to Top |


