mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Use filled instead of has. (#6033)
I think this merged in a weird order and was missed by the global find/replace. This fixes bulkassets/bulkusers editing. At some point we should look at refactoring BulkAssetsController@edit to only run one DB query, rather than one per item.
This commit is contained in:
parent
2637ce56a1
commit
e368a20427
|
@ -141,7 +141,7 @@ class BulkAssetsController extends Controller
|
|||
*/
|
||||
protected function conditionallyAddItem($field)
|
||||
{
|
||||
if(request()->has($field)) {
|
||||
if(request()->filled($field)) {
|
||||
$this->update_array[$field] = request()->input($field);
|
||||
}
|
||||
return $this;
|
||||
|
|
|
@ -142,7 +142,7 @@ class BulkUsersController extends Controller
|
|||
*/
|
||||
protected function conditionallyAddItem($field)
|
||||
{
|
||||
if(request()->has($field)) {
|
||||
if(request()->filled($field)) {
|
||||
$this->update_array[$field] = request()->input($field);
|
||||
}
|
||||
return $this;
|
||||
|
|
Loading…
Reference in a new issue