CRM-16521 - Fix name badge download from popup
authorColeman Watts <coleman@civicrm.org>
Mon, 8 Jun 2015 20:25:16 +0000 (16:25 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 8 Jun 2015 20:25:16 +0000 (16:25 -0400)
CRM/Event/Form/Task/Badge.php

index 9969baeb88be5eb803aabec80f0fe4ea63a10dfb..078e2e71909873bbdaf3f36b51d4112c1464aa54 100644 (file)
@@ -90,6 +90,9 @@ class CRM_Event_Form_Task_Badge extends CRM_Event_Form_Task {
   public function buildQuickForm() {
     CRM_Utils_System::setTitle(ts('Make Name Badges'));
 
+    // Ajax submit would interfere with file download
+    $this->preventAjaxSubmit();
+
     //add select for label
     $label = CRM_Badge_BAO_Layout::getList();