|
@@ -201,7 +201,7 @@ class Course extends Component
|
|
|
$subscriptions = array_column($this->prices, 'course_subscription_id');
|
|
$subscriptions = array_column($this->prices, 'course_subscription_id');
|
|
|
$unique_subscriptions = array_unique($subscriptions);
|
|
$unique_subscriptions = array_unique($subscriptions);
|
|
|
if (count($subscriptions) != count($unique_subscriptions))
|
|
if (count($subscriptions) != count($unique_subscriptions))
|
|
|
- $this->msgPrices = 'È possibile aggiungere solo un abbonamento per ciascun tipo';
|
|
|
|
|
|
|
+ $this->msgPrices = 'Non è possibile aggiungere più volte la stessa tipologia di pagamento';
|
|
|
|
|
|
|
|
if ($this->msgPrices == '' && $this->msgWhen == '')
|
|
if ($this->msgPrices == '' && $this->msgWhen == '')
|
|
|
{
|
|
{
|
|
@@ -373,7 +373,7 @@ class Course extends Component
|
|
|
$subscriptions = array_column($this->prices, 'course_subscription_id');
|
|
$subscriptions = array_column($this->prices, 'course_subscription_id');
|
|
|
$unique_subscriptions = array_unique($subscriptions);
|
|
$unique_subscriptions = array_unique($subscriptions);
|
|
|
if (count($subscriptions) != count($unique_subscriptions))
|
|
if (count($subscriptions) != count($unique_subscriptions))
|
|
|
- $this->msgPrices = 'È possibile aggiungere solo un abbonamento per ciascun tipo';
|
|
|
|
|
|
|
+ $this->msgPrices = 'Non è possibile aggiungere più volte la stessa tipologia di pagamento';
|
|
|
|
|
|
|
|
if ($this->msgPrices == '' && $this->msgWhen == '')
|
|
if ($this->msgPrices == '' && $this->msgWhen == '')
|
|
|
{
|
|
{
|