Skip to content

Commit

Permalink
Fix another issue with subscription value seeding logic for new subsc…
Browse files Browse the repository at this point in the history
…riptions
  • Loading branch information
pjones9 committed Nov 30, 2010
1 parent 57a5176 commit 2d2d6c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion periodicals/subscription-add.pl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
my $subscription_id = $query->param('subscription_id');
my $periodical_id = $query->param('periodical_id');
if (($subscription_id and C4::Control::Subscription::UserCanViewSubscription($subscription_id)) or
($periodical_id and defined $subscription_id)
($periodical_id and defined $subscription_id) or
($periodical_id and ($op eq 'save'))
) {
$subscription_id = C4::Control::Subscription::UpdateOrCreate($query) if ($op eq 'save');
SeedTemplateWithSubscriptionData($template, $subscription_id) if ($subscription_id);
Expand Down

0 comments on commit 2d2d6c3

Please sign in to comment.