News:

Support the VirtueMart project and become a member

Main Menu

On system message stay on same page

Started by dzséti, November 17, 2012, 15:07:19 PM

Previous topic - Next topic

dzséti

Using 2.0.10 and heading towards final tidy up at last. One thing still bugging me is the appearance of system messages. I have moved these into a modal popup (through using a Joomla extension) but in one place the popup shows over an empty page. I would like to keep the page showing the input data.

The page in question is the user account maintenance page. On saving the data a success system message comes up (now in a popup, but the user page is otherwise blank. How do I prevent this?

8)

dzséti

Some further information:

The redirect from saveUser() in user.php

$this->setRedirect( JRoute::_('index.php?option=com_virtuemart&view=user&layout='.$layout), $msg );

with the default layout ('edit') produces the full user page - if entered directly.

The same result is achieved, if I select http://.../my-account.html (from my menu structure)

HOWEVER after saving user data VM returns me with the system message as a pop-up to a blank user page with the following url:

http://.../my-account/edit.html

... and I can't work out where this is coming from. Neither the redirect in user.php nor the action references in the form in edit.php ('index.php?option=com_virtuemart&view=user') should return me to this page.

Any ideas anyone?