X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FAdmin%2FForm%2FPdfFormats.php;h=2c15f18caddcaee5b83c8620586c9ba9f8f7f131;hb=0d5147553408267419ef1e8fbe3cfecb83dff7ba;hp=5daa96f03c976eff82ee3ea54f0a64239bcd781b;hpb=53310fc2e82a7d5d604380b16e1e795fd9882e21;p=civicrm-core.git diff --git a/CRM/Admin/Form/PdfFormats.php b/CRM/Admin/Form/PdfFormats.php index 5daa96f03c..2c15f18cad 100644 --- a/CRM/Admin/Form/PdfFormats.php +++ b/CRM/Admin/Form/PdfFormats.php @@ -24,7 +24,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -66,7 +66,7 @@ class CRM_Admin_Form_PdfFormats extends CRM_Admin_Form { $this->add('select', 'paper_size', ts('Paper Size'), array( - 0 => ts('- default -') + 0 => ts('- default -'), ) + CRM_Core_BAO_PaperSize::getList(TRUE), FALSE, array('onChange' => "selectPaper( this.value );") ); @@ -86,7 +86,7 @@ class CRM_Admin_Form_PdfFormats extends CRM_Admin_Form { $this->addRule('name', ts('Name already exists in Database.'), 'objectExists', array( 'CRM_Core_BAO_PdfFormat', - $this->_id + $this->_id, )); $this->addRule('margin_left', ts('Margin must be numeric'), 'numeric'); $this->addRule('margin_right', ts('Margin must be numeric'), 'numeric'); @@ -133,4 +133,5 @@ class CRM_Admin_Form_PdfFormats extends CRM_Admin_Form { } CRM_Core_Session::setStatus($status); } + }