Jump to:

23452 Posts in 18901 Topics by 2877 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, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1050 Views
  • JoshuaLewis
    Avatar
    Community Member
    76 Posts

    ModelAdmin Loads incorrectly after adding a new item. Link to this post

    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.

  • altima
    Avatar
    Community Member
    3 Posts

    Re: ModelAdmin Loads incorrectly after adding a new item. Link to this post

    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

  • Pigeon
    Avatar
    Community Member
    243 Posts

    Re: ModelAdmin Loads incorrectly after adding a new item. Link to this post

    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.

    1050 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.