Skip to content
Snippets Groups Projects
Commit ab435bd4 authored by lobo's avatar lobo
Browse files

CRM-13621 - suppress entryURL for snippet forms

----------------------------------------
* CRM-13621: Handle invalid session errors for public pages in a nicer manner
  http://issues.civicrm.org/jira/browse/CRM-13621
parent 1755d576
Branches
Tags
No related merge requests found
......@@ -358,9 +358,12 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
) {
$this->addElement('hidden', 'qfKey', $this->controller->_key);
$this->assign('qfKey', $this->controller->_key);
}
if ($this->controller->_entryURL) {
// _generateQFKey suppresses the qfKey generation on form snippets that
// are part of other forms, hence we use that to avoid adding entryURL
if ($this->controller->_generateQFKey && $this->controller->_entryURL) {
$this->addElement('hidden', 'entryURL', $this->controller->_entryURL);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment