Laravel-Backpack / LangFileManager

A quick interface to edit Laravel language files, for Backpack.
http://backpackforlaravel.com
MIT License
92 stars 42 forks source link

Disabled languages still accessible #32

Closed alexiswbr closed 7 years ago

alexiswbr commented 7 years ago

When you set the active value to false for a language, this language still appear when you edit the translations files. I think it is because of this line :

// Backpack\LangFileManager\app\Http\Controllers\LanguageCrudController
$this->data['languages'] = $languages->orderBy('name')->get();

// fixed with

this->data['languages'] = $languages->orderBy('name')->where('active', 1)->get();

I made a pull request, don't really know how to assign it to this issue

lloy0076 commented 7 years ago

https://laravel-backpack.readme.io/docs/crud-fields#section-range

lloy0076 commented 7 years ago

Closing - was merged in #33.