Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -15,6 +15,7 @@ namespace IPS\nexus\Form;
|
||||
|
||||
use DateInterval;
|
||||
use IPS\Helpers\Form\FormAbstract;
|
||||
use IPS\Math\Number;
|
||||
use IPS\Member;
|
||||
use IPS\nexus\Money;
|
||||
use IPS\nexus\Purchase\RenewalTerm as RenewalTermClass;
|
||||
@@ -126,7 +127,14 @@ class RenewalTerm extends FormAbstract
|
||||
/* If we have no price specified, stop here */
|
||||
if( $costs === NULL OR ( is_array( $costs ) AND !count( $costs ) ) )
|
||||
{
|
||||
return null;
|
||||
if( $this->options['lockPrice'] )
|
||||
{
|
||||
$costs = new Money( new Number( "0" ), $currency );
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/* Work out term */
|
||||
|
||||
Reference in new issue
Block a user