Version 5.0.13

This commit is contained in:
Neo committed 2025-12-19 19:04:57 -08:00
1 parent b89858b2ff
commit 5efe744c5f
1407 files changed
+69690 -30177

No files matched your search

@@ -21,6 +21,7 @@ use IPS\Member;
use IPS\MFA\MFAHandler;
use IPS\nexus\Customer;
use IPS\nexus\Customer\BillingAgreement;
use IPS\nexus\Gateway;
use IPS\nexus\Gateway\PayPal\Exception;
use IPS\Output;
use IPS\Patterns\ActiveRecordIterator;
@@ -89,6 +90,11 @@ class billingagreements extends Controller
$where[] = $id;
}
}
$where = [
$where,
[ Db::i()->in( 'ba_method', array_keys( Gateway::billingAgreementGateways() ) ) ]
];
foreach ( new ActiveRecordIterator( Db::i()->select( '*', 'nexus_billing_agreements', $where ), 'IPS\nexus\Customer\BillingAgreement' ) as $billingAgreement )
{
@@ -21,6 +21,7 @@ use IPS\Member;
use IPS\MFA\MFAHandler;
use IPS\nexus\Customer;
use IPS\nexus\Customer\CreditCard;
use IPS\nexus\Gateway;
use IPS\Output;
use IPS\Patterns\ActiveRecordIterator;
use IPS\Request;
@@ -74,7 +75,10 @@ class cards extends Controller
protected function manage() : void
{
$cards = array();
foreach ( new ActiveRecordIterator( Db::i()->select( '*', 'nexus_customer_cards', array( 'card_member=?', Customer::loggedIn()->member_id ) ), 'IPS\nexus\Customer\CreditCard' ) as $card )
foreach ( new ActiveRecordIterator( Db::i()->select( '*', 'nexus_customer_cards', array(
array( 'card_member=?', Customer::loggedIn()->member_id ),
array( Db::i()->in( 'card_method', array_keys( Gateway::cardStorageGateways() ) ) )
) ), 'IPS\nexus\Customer\CreditCard' ) as $card )
{
try
{
@@ -236,6 +236,8 @@ class store extends Controller
{
$packagesWithCustomFields = array_merge( $packagesWithCustomFields, array_filter( explode( ',', $ids ) ) );
}
Output::i()->bodyAttributes['contentClass'] = Group::class;
/* Output */
if ( Request::i()->isAjax() )