cancel button redirect problem

Login or register to post comments
1 reply [Last post]
Offline
Joined: 03/05/2011

As the guides advise I am using a copy of the generated files from /drafts in another location.

The Cancel button on all the edit pages redirects to /drafts list pages. I can see this happens because the RedirectToListPage function in all the EditFormBase classes looks like this;

QApplication::Redirect(__VIRTUAL_DIRECTORY__ . __FORM_DRAFTS__ . '/client_list.php');

I know I could override this by using the RedirectToListPage functions in the files I have copied but surely I am missing something because would be pain as it would be have to done on every editFrom class.

alex94040's picture
Offline
Joined: 11/06/2008

In your forms that derive from the FormBase, create an override method called RedirectToListPage() and you're done.