Commit 3e308314 authored by Eileen McNaughton's avatar Eileen McNaughton
Browse files

fix coding & whitespace issues

parent ff2158a7
......@@ -147,11 +147,12 @@ class CRM_CiviDiscount_Form_Admin extends CRM_Admin_Form {
}
$this->applyFilter('__ALL__', 'trim');
$element =& $this->add('text',
$element = $this->add('text',
'code',
ts('Code'),
CRM_Core_DAO::getAttribute('CRM_CiviDiscount_DAO_Item', 'code'),
true);
true
);
$this->addRule('code',
ts('Code already exists in Database.'),
'objectExists',
......
......@@ -41,7 +41,6 @@ class CRM_CiviDiscount_Utils {
// quite a few folks want this!
$eventInfo =
CRM_Event_BAO_Event::getCompleteInfo(NULL, NULL, NULL, NULL, FALSE);
if (! empty($eventInfo)) {
$events = array();
foreach ($eventInfo as $info) {
......
......@@ -104,9 +104,9 @@
<tr class="crm-discount-item-form-block-events">
<td class="label">{$form.events.label} {help id="events" title=$form.events.label}</td>
<td>{$form.events.html}<br/>
{if $form.pricesets}
<span
class="description"><strong><em>{ts}If you use price sets for your events, you also need to select any discountable price sets below.{/ts}</em></strong>
{if $form.pricesets}
<span
class="description"><strong><em>{ts}If you use price sets for your events, you also need to select any discountable price sets below.{/ts}</em></strong>
</span>
{/if}
</td>
......@@ -130,7 +130,7 @@
{/if}
<tr>
<td>&nbsp;</td>
<td>{$form.discount_msg_enabled.html} {$form.discount_msg_enabled.label}</td>
<td>{$form.discount_msg_enabled.html} {$form.discount_msg_enabled.label}</td>
</tr>
<tr class="crm-discount-item-form-block-discount-message">
<td class="label">{$form.discount_msg.label} {help id="discount-message" title=$form.discount_msg.label}</td>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment