mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-04 18:37:29 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
8bb8eab69b
|
@ -337,7 +337,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
|||
*/
|
||||
public function licenses()
|
||||
{
|
||||
return $this->belongsToMany(\App\Models\License::class, 'license_seats', 'assigned_to', 'license_id')->withPivot('id');
|
||||
return $this->belongsToMany(\App\Models\License::class, 'license_seats', 'assigned_to', 'license_id')->withPivot('id', 'created_at', 'updated_at');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -37,7 +37,13 @@ Form::macro('countries', function ($name = 'country', $selected = null, $class =
|
|||
|
||||
// Pull the autoglossonym array from the localizations translation file
|
||||
foreach (trans('localizations.countries') as $abbr => $country) {
|
||||
$select .= '<option value="'.strtoupper($abbr).'"'.(strtoupper($selected) == strtoupper($abbr) ? ' selected="selected" role="option" aria-selected="true"' : ' aria-selected="false"').'>'.$country.'</option> ';
|
||||
|
||||
// We have to handle it this way to handle deprecication warnings since you can't strtoupper on null
|
||||
if ($abbr!='') {
|
||||
$abbr = strtoupper($abbr);
|
||||
}
|
||||
|
||||
$select .= '<option value="'.$abbr.'"'.($selected == $abbr) ? ' selected="selected" role="option" aria-selected="true"' : ' aria-selected="false"'.'>'.$country.'</option> ';
|
||||
}
|
||||
|
||||
$select .= '</select>';
|
||||
|
|
|
@ -151,7 +151,7 @@
|
|||
<i class="fa-lock" aria-hidden="true"></i> {{ str_repeat('x', 15) }}
|
||||
@endcan
|
||||
</td>
|
||||
<td>{{ $license->pivot->created_at }}</td>
|
||||
<td>{{ $license->pivot->updated_at }}</td>
|
||||
</tr>
|
||||
@php
|
||||
$lcounter++
|
||||
|
|
Loading…
Reference in a new issue