Bug fixes

This commit is contained in:
Hillel Coren 2015-12-24 13:17:11 +02:00
parent c0409b86fd
commit 991b19b2a2
4 changed files with 6 additions and 2 deletions

View File

@ -526,7 +526,7 @@ class Invoice extends EntityModel implements BalanceAffecting
} }
if ($this->end_date) { if ($this->end_date) {
$rule .= 'UNTIL=' . $this->end_date; $rule .= 'UNTIL=' . $this->getOriginal('end_date');
} }
return $rule; return $rule;

View File

@ -353,7 +353,7 @@ class ImportService
$results = []; $results = [];
foreach ($maps as $entityType => $map) { foreach ($maps as $entityType => $map) {
$result[$entityType] = $this->executeCSV($entityType, $map, $headers[$entityType]); $results[$entityType] = $this->executeCSV($entityType, $map, $headers[$entityType]);
} }
return $results; return $results;

View File

@ -54,6 +54,10 @@
<div id="gateway_{{ $gateway->id }}_div" class='gateway-fields' style="display: none"> <div id="gateway_{{ $gateway->id }}_div" class='gateway-fields' style="display: none">
@foreach ($gateway->fields as $field => $details) @foreach ($gateway->fields as $field => $details)
@if ($details && !$accountGateway)
{!! Former::populateField($gateway->id.'_'.$field, $details) !!}
@endif
@if (in_array($field, $hiddenFields)) @if (in_array($field, $hiddenFields))
{{-- do nothing --}} {{-- do nothing --}}
@elseif ($gateway->id == GATEWAY_DWOLLA && ($field == 'key' || $field == 'secret') @elseif ($gateway->id == GATEWAY_DWOLLA && ($field == 'key' || $field == 'secret')

Binary file not shown.