Skip to content

Commit

Permalink
Fix so suppressing form success msgs also suppresses JS popup on AJAX
Browse files Browse the repository at this point in the history
submit.
  • Loading branch information
cheesegrits committed Feb 14, 2014
1 parent 5f4b2f6 commit 30b1465
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
8 changes: 7 additions & 1 deletion components/com_fabrik/controllers/form.php
Expand Up @@ -266,7 +266,13 @@ public function process()
{
// $$$ hugh - adding some options for what to do with redirect when in content plugin
// Should probably do this elsewhere, but for now ...
$redirect_opts = array('msg' => $msg, 'url' => $url, 'baseRedirect' => $this->baseRedirect, 'rowid' => $input->get('rowid', '', 'string'));
$redirect_opts = array(
'msg' => $msg,
'url' => $url,
'baseRedirect' => $this->baseRedirect,
'rowid' => $input->get('rowid', '', 'string'),
'suppressMsg' => !$model->showSuccessMsg()
);

if (!$this->baseRedirect && $this->isMambot)
{
Expand Down

0 comments on commit 30b1465

Please sign in to comment.