Skip to content
Snippets Groups Projects
Commit e6b6dd0a authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #1984 from dlobo/CRM-13621

CRM-13621 - suppress entryURL for snippet forms
parents a3dd7631 ab435bd4
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment