Skip to content

Commit

Permalink
Ticket #3275
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Aug 10, 2021
1 parent 35b5988 commit f857ee7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions modules/boonex/donations/classes/BxDonationsDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ public function getTypes($aParams)
$sWhereClause .= "AND `tt`.`name`=:name";
break;

case 'by_duration_price':
case 'by_duration_amount':
$aMethod['name'] = 'getRow';
$aMethod['params'][1] = array(
'period' => $aParams['period'],
'period_unit' => $aParams['period_unit'],
'price' => $aParams['price'],
'amount' => $aParams['amount'],
);

$sWhereClause .= "AND `tt`.`period`=:period AND `tt`.`period_unit`=:period_unit AND `tt`.`price`=:price";
$sWhereClause .= "AND `tt`.`period`=:period AND `tt`.`period_unit`=:period_unit AND `tt`.`amount`=:amount";
break;

case 'by_btype_single':
Expand Down
4 changes: 2 additions & 2 deletions modules/boonex/donations/classes/BxDonationsGridTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public function performActionAdd()
if($bPeriod && !$bPeriodUnit)
return echoJson(array('msg' => _t('_bx_donations_form_type_input_err_period_unit')));

$iPrice = $oForm->getCleanValue('price');
$aType = $this->_oModule->_oDb->getTypes(array('type' => 'by_duration_price', 'period' => $iPeriod, 'period_unit' => $sPeriodUnit, 'price' => $iPrice));
$iAmount = $oForm->getCleanValue('amount');
$aType = $this->_oModule->_oDb->getTypes(array('type' => 'by_duration_amount', 'period' => $iPeriod, 'period_unit' => $sPeriodUnit, 'amount' => $iAmount));
if(!empty($aType) && is_array($aType))
return echoJson(array('msg' => _t('_bx_donations_err_price_duplicate')));

Expand Down
3 changes: 3 additions & 0 deletions modules/boonex/donations/template/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
.bx-dnt-make-billing-types-menu .bx-menu-tab-active .bx-btn {
background-color: rgba(0, 0, 0, 0.05);
}
.bx-media-phone .bx-dnt-make-billing-types-menu .bx-menu-item a {
margin-right: 0;
}

.bx-dnt-make-billing-types {
position: relative;
Expand Down

0 comments on commit f857ee7

Please sign in to comment.