Bug fixes

This commit is contained in:
Hillel Coren 2014-03-18 23:25:54 +02:00
parent 0f9f32dd49
commit f9a8642909
3 changed files with 4 additions and 4 deletions

View File

@ -442,7 +442,7 @@ class AccountController extends \BaseController {
foreach ($fields as $field => $details) foreach ($fields as $field => $details)
{ {
if (!in_array($field, ['testMode', 'developerMode', 'headerImageUrl', 'solutionType', 'landingPage'])) if (!in_array($field, ['testMode', 'developerMode', 'headerImageUrl', 'solutionType', 'landingPage', 'brandName']))
{ {
$rules[$gateway->id.'_'.$field] = 'required'; $rules[$gateway->id.'_'.$field] = 'required';
} }

View File

@ -32,7 +32,7 @@
<div id="gateway_{{ $gateway->id }}_div" style="display: none"> <div id="gateway_{{ $gateway->id }}_div" style="display: none">
@foreach ($gateway->fields as $field => $details) @foreach ($gateway->fields as $field => $details)
@if ($field == 'solutionType' || $field == 'landingPage') @if (in_array($field, ['solutionType', 'landingPage', 'headerImageUrl', 'brandName']))
{{-- do nothing --}} {{-- do nothing --}}
@elseif ($field == 'testMode' || $field == 'developerMode') @elseif ($field == 'testMode' || $field == 'developerMode')
{{-- Former::checkbox($gateway->id.'_'.$field)->label(Utils::toSpaceCase($field))->text('Enable') --}} {{-- Former::checkbox($gateway->id.'_'.$field)->label(Utils::toSpaceCase($field))->text('Enable') --}}

View File

@ -578,8 +578,8 @@
@if (file_exists($account->getLogoPath())) @if (file_exists($account->getLogoPath()))
invoice.image = "{{ HTML::image_data($account->getLogoPath()) }}"; invoice.image = "{{ HTML::image_data($account->getLogoPath()) }}";
invoice.imageWidth = {{ $account->getLogoWidth() * (72/96) }}; invoice.imageWidth = {{ $account->getLogoWidth() }};
invoice.imageHeight = {{ $account->getLogoHeight() * (72/96) }}; invoice.imageHeight = {{ $account->getLogoHeight() }};
@endif @endif