Fix n2disk license validation error

Fixes #2872
This commit is contained in:
emanuele-f 2019-09-20 12:12:02 +02:00
parent a7a9c7c848
commit 54843a7865
4 changed files with 11 additions and 5 deletions

View file

@ -946,7 +946,8 @@ function printRecording()
..ternary(n2disk_info.systemid ~= nil, i18n("prefs.n2disk_license_systemid", {systemid=n2disk_info.systemid}), ""),
"ntopng.prefs.", "n2disk_license",
ternary(n2disk_info.license ~= nil, n2disk_info.license, ""),
false, nil, nil, nil, {style={width="25em;"}, min = 50, max = 64 })
false, nil, nil, nil, {style={width="25em;"}, min = 50, max = 64,
pattern = getLicensePattern()})
print('<tr><th colspan=2 class="info">'..i18n("traffic_recording.settings")..'</th></tr>')