Skip to content

Commit

Permalink
Issue #534 by pjohans: Get default_interest period for reservations
Browse files Browse the repository at this point in the history
  • Loading branch information
pjohans committed Oct 13, 2014
1 parent 00a8576 commit 794e19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/alma.reservation.inc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function alma_reservation_options($account, $default_value = '') {

// Get values.
$preferred_branch = $wrapper->field_alma_preferred_branch->value();
$interest_period = $wrapper->field_alma_interest_period->value();
$interest_period = (variable_get('alma_default_interest_period',FALSE)) ? variable_get('alma_default_interest_period') :$wrapper->field_alma_interest_period->value();
}

// Set default value in the selection box if given else use preferred_branch.
Expand Down

0 comments on commit 794e19d

Please sign in to comment.