Skip to content

Commit 7de0a89

Browse files
committed
Merge branch 'master' into html-render-fix
2 parents c6af076 + d76af3b commit 7de0a89

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ In `config/app.php` section under `aliases` with the following:
102102
'Html' => Collective\Html\HtmlFacade::class,
103103
```
104104
105-
4. Publish the packages language files by running the following from your projects root folder:
105+
4. Publish the package config and language files by running the following from your projects root folder:
106106
107107
```
108108
php artisan vendor:publish --tag=laravelusers
@@ -303,7 +303,7 @@ Before opening an issue there are a couple of considerations:
303303
* **Check** to see if the issue you are *reporting is a duplicate* of a previous reported issue.
304304
* **Following these instructions show me that you have tried.**
305305
* If you have a questions send me an email to [email protected]
306-
* Please be considerate that this is an open source project that I provide to the community for FREE when openeing an issue.
306+
* Please be considerate that this is an open source project that I provide to the community for FREE when opening an issue.
307307

308308
### License
309309
Laravel-Users | A Laravel Users Management Package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT). Enjoy!

src/resources/views/usersmanagement/edit-user.blade.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@
108108
<option value="">{!! trans('laravelusers::forms.create_user_ph_role') !!}</option>
109109
@if ($roles)
110110
@foreach($roles as $role)
111-
<option value="{{ $role->id }}" {{ $currentRole->id == $role->id ? 'selected="selected"' : '' }}>{{ $role->name }}</option>
111+
@if ($currentRole)
112+
<option value="{{ $role->id }}" {{ $currentRole->id == $role->id ? 'selected="selected"' : '' }}>{{ $role->name }}</option>
113+
@else
114+
<option value="{{ $role->id }}">{{ $role->name }}</option>
115+
@endif
112116
@endforeach
113117
@endif
114118
</select>

0 commit comments

Comments
 (0)