mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Fix performance issue in loadbalancers module (#11771)
* Update Component.php * wrong quotes Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
parent
2a5b1fd071
commit
e26498ad91
@ -219,10 +219,11 @@ class Component
|
||||
->with('prefs')
|
||||
->get()
|
||||
->each(function (\App\Models\Component $component) use ($updated) {
|
||||
unset($updated[$component->id]['type']); // can't change type
|
||||
$update = $updated[$component->id];
|
||||
unset($update['type']); // can't change type
|
||||
|
||||
// update component attributes
|
||||
$component->fill($updated[$component->id]);
|
||||
$component->fill($update);
|
||||
if ($component->isDirty()) {
|
||||
// Log the update to the Eventlog.
|
||||
$message = "Component $component->id has been modified: ";
|
||||
|
Loading…
Reference in New Issue
Block a user