projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4871 from eileenmcnaughton/CRM-15795
[civicrm-core.git]
/
CRM
/
Core
/
BAO
/
Discount.php
diff --git
a/CRM/Core/BAO/Discount.php
b/CRM/Core/BAO/Discount.php
index 770fe2850fba3b53c04b7caac9d36a9abe35458b..c474aa5107a0d2cd68e0a60083387a9c8ae43c77 100644
(file)
--- a/
CRM/Core/BAO/Discount.php
+++ b/
CRM/Core/BAO/Discount.php
@@
-52,7
+52,7
@@
class CRM_Core_BAO_Discount extends CRM_Core_DAO_Discount {
*/
public static function del($entityId, $entityTable) {
// delete all discount records with the selected discounted id
*/
public static function del($entityId, $entityTable) {
// delete all discount records with the selected discounted id
- $discount = new CRM_Core_DAO_Discount(
);
+ $discount = new CRM_Core_DAO_Discount();
$discount->entity_id = $entityId;
$discount->entity_table = $entityTable;
if ($discount->delete()) {
$discount->entity_id = $entityId;
$discount->entity_table = $entityTable;
if ($discount->delete()) {
@@
-74,7
+74,7
@@
class CRM_Core_BAO_Discount extends CRM_Core_DAO_Discount {
* @static
*/
public static function add(&$params) {
* @static
*/
public static function add(&$params) {
- $discount = new CRM_Core_DAO_Discount(
);
+ $discount = new CRM_Core_DAO_Discount();
$discount->copyValues($params);
$discount->save();
return $discount;
$discount->copyValues($params);
$discount->save();
return $discount;
@@
-94,7
+94,7
@@
class CRM_Core_BAO_Discount extends CRM_Core_DAO_Discount {
*/
public static function getOptionGroup($entityId, $entityTable) {
$optionGroupIDs = array();
*/
public static function getOptionGroup($entityId, $entityTable) {
$optionGroupIDs = array();
- $dao = new CRM_Core_DAO_Discount(
);
+ $dao = new CRM_Core_DAO_Discount();
$dao->entity_id = $entityId;
$dao->entity_table = $entityTable;
$dao->find();
$dao->entity_id = $entityId;
$dao->entity_table = $entityTable;
$dao->find();
@@
-122,7
+122,7
@@
class CRM_Core_BAO_Discount extends CRM_Core_DAO_Discount {
return NULL;
}
return NULL;
}
- $dao = new CRM_Core_DAO_Discount(
);
+ $dao = new CRM_Core_DAO_Discount();
$dao->entity_id = $entityID;
$dao->entity_table = $entityTable;
$dao->find();
$dao->entity_id = $entityID;
$dao->entity_table = $entityTable;
$dao->find();