mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Handle special config id 0 (default)
This commit is contained in:
parent
5f6c432acc
commit
228a129166
1 changed files with 5 additions and 1 deletions
|
|
@ -803,7 +803,11 @@ function user_scripts.createOrReplaceConfigset(configset)
|
|||
configsets[existing.id] = nil
|
||||
end
|
||||
|
||||
local new_confid = getNewConfigSetId(configsets)
|
||||
local new_confid = 0
|
||||
if configset.id ~= 0 then
|
||||
new_confid = getNewConfigSetId(configsets)
|
||||
end
|
||||
|
||||
configsets[new_confid] = table.clone(configset)
|
||||
configsets[new_confid].id = new_confid
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue