projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup reverse boolean expressions
[civicrm-core.git]
/
CRM
/
Contribute
/
Form
/
Contribution.php
diff --git
a/CRM/Contribute/Form/Contribution.php
b/CRM/Contribute/Form/Contribution.php
index e30f8706e9747f7966b90b557360e990cf5c21e4..f7ff56ec636fcd68dd9f45f30bb42ed8387302ff 100644
(file)
--- a/
CRM/Contribute/Form/Contribution.php
+++ b/
CRM/Contribute/Form/Contribution.php
@@
-637,7
+637,7
@@
class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
$paymentInstrument = FALSE;
if (!$this->_mode) {
// payment_instrument isn't required in edit and will not be present when payment block is enabled.
$paymentInstrument = FALSE;
if (!$this->_mode) {
// payment_instrument isn't required in edit and will not be present when payment block is enabled.
- $required =
$this->_id ? FALSE : TRUE
;
+ $required =
!$this->_id
;
$checkPaymentID = array_search('Check', CRM_Contribute_PseudoConstant::paymentInstrument('name'));
$paymentInstrument = $this->add('select', 'payment_instrument_id',
ts('Payment Method'),
$checkPaymentID = array_search('Check', CRM_Contribute_PseudoConstant::paymentInstrument('name'));
$paymentInstrument = $this->add('select', 'payment_instrument_id',
ts('Payment Method'),
@@
-776,7
+776,7
@@
class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
$totalAmount = $this->addMoney('total_amount',
ts('Total Amount'),
$totalAmount = $this->addMoney('total_amount',
ts('Total Amount'),
-
($hasPriceSets) ? FALSE : TRUE
,
+
!$hasPriceSets
,
$attributes['total_amount'],
TRUE, 'currency', NULL, $currencyFreeze
);
$attributes['total_amount'],
TRUE, 'currency', NULL, $currencyFreeze
);