mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Improved module controls (#16372)
* Improved module controls Ability to clear device module overrides from webui Ability to clear all database data for a module (helpful for module you have disabled that still have data) Database reset only works for modern modules. * Update functions.php
This commit is contained in:
@@ -406,9 +406,9 @@ class Device extends BaseModel
|
||||
$this->save();
|
||||
}
|
||||
|
||||
public function getAttrib($name)
|
||||
public function getAttrib($name, $default = null)
|
||||
{
|
||||
return $this->attribs->pluck('attrib_value', 'attrib_type')->get($name);
|
||||
return $this->attribs->pluck('attrib_value', 'attrib_type')->get($name, $default);
|
||||
}
|
||||
|
||||
public function setAttrib($name, $value)
|
||||
|
Reference in New Issue
Block a user