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

Merge pull request #1779 from pratik-joshi/CRM-13563

CRM-13563 fix: exclude the 'save and new' button on form for group search context
parents 7308bcb8 239a5027
No related branches found
No related tags found
No related merge requests found
...@@ -924,7 +924,11 @@ loadCampaign( {$this->_eID}, {$eventCampaigns} ); ...@@ -924,7 +924,11 @@ loadCampaign( {$this->_eID}, {$eventCampaigns} );
); );
$path = CRM_Utils_System::currentPath(); $path = CRM_Utils_System::currentPath();
if (strpos($path, 'civicrm/contact/search') !== 0) { $excludeForPaths = array(
'civicrm/contact/search',
'civicrm/group/search'
);
if (!in_array($path, $excludeForPaths)) {
$buttons[] = array( $buttons[] = array(
'type' => 'upload', 'type' => 'upload',
'name' => ts('Save and New'), 'name' => ts('Save and New'),
...@@ -932,6 +936,7 @@ loadCampaign( {$this->_eID}, {$eventCampaigns} ); ...@@ -932,6 +936,7 @@ loadCampaign( {$this->_eID}, {$eventCampaigns} );
'js' => $confirmJS, 'js' => $confirmJS,
); );
} }
$buttons[] = array( $buttons[] = array(
'type' => 'cancel', 'type' => 'cancel',
'name' => ts('Cancel'), 'name' => ts('Cancel'),
......
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