Fixes
This commit is contained in:
@@ -32,9 +32,10 @@ class Varieties
|
||||
$data = [];
|
||||
foreach ($varieties as $variety)
|
||||
{
|
||||
$data[] = ['id' => $variety->id, 'text' => (isset($variety->specie->name) ? $variety->specie->name . ' ' : '') . $variety->name];
|
||||
$data[$variety->id] = (isset($variety->specie->name) ? $variety->specie->name . ' ' : '') . $variety->name;
|
||||
}
|
||||
return collect($data)->sortBy('text')->values()->all();
|
||||
asort($data, SORT_NATURAL | SORT_FLAG_CASE);
|
||||
return $data;
|
||||
}
|
||||
|
||||
public static function getAll()
|
||||
|
||||
Reference in New Issue
Block a user