Undefinied Variable Subfleets

Good day everyone,

 

I’ve got a problem when I want to show my bids

 

Quote

Undefined variable: subfleets (View: /resources/views/layouts/default/flights/search.blade.php)

 

 

The problem might be somewhere here in the search.blade.php:

\<div style="margin-top: 10px; margin-left: 5px;"\> \<p\>@lang('common.subfleet')\</p\> {{ Form::select('subfleet\_id', $subfleets, null , ['class' =\> 'form-control select2']) }} \</div\>

I tried to search where the variable $subfleets gets definied, but I’m an old school hobby php programer, so its hard :smiley:

 

I tried to completly delete this section out of search.blade.php and then it worked, but I don’t want to decrease the functionality of the system by any chance.

 

I hope someone can help me finding the problem.

 

Greetings

Are you using the latest dev build? If not, use the lastest build.

If so, it may be better to post your issue to github at: https://github.com/nabeelio/phpvms

Hi ProAvia

 

I’m using the latest phpvms 7 beta 3

 

I will post it to github, but I’ll try to fix it aswell.

 

Greetings

There have been several updates to the dev branch recently. I would suggest you get the latest one and install it. 

Thank you very much!

 

I did install the dev branch now and it seems to be fixed.

Wish you a pleasant evening.

Glad it’s working now. 

 

Yes, always a good idea to check if updates have been made and install the latest dev branch. Also if you have an error, post to his github as he will see it faster there too.