mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fix config not saved when script is disabled
This commit is contained in:
parent
29e080881d
commit
628c9465eb
1 changed files with 4 additions and 0 deletions
|
|
@ -1009,6 +1009,10 @@ function user_scripts.updateScriptConfig(confid, script_key, subdir, new_config)
|
|||
|
||||
if conf.enabled then
|
||||
valid, rv_or_err = script.template:parseConfig(script, conf.script_conf)
|
||||
else
|
||||
-- Assume the config is valid when the script is disabled to simplify the check
|
||||
valid = true
|
||||
rv_or_err = conf.script_conf
|
||||
end
|
||||
|
||||
if(not valid) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue