]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commit
dhcp.cgi: Save fixed leases immediately after addition of a new lease
authorBernhard Bitsch <Bernhard.Bitsch@gmx.de>
Tue, 4 Jun 2019 10:24:00 +0000 (12:24 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Jun 2019 23:30:19 +0000 (00:30 +0100)
commite4f9ea3c1650d369f8a764605203778bfea0d390
tree7846e321247d2f71b691fd3572f4110b783f702b
parent0bb25a4f61e494a8118bfb764625cd98fe209438
dhcp.cgi: Save fixed leases immediately after addition of a new lease

This changes the behaviour of the script to immediately save the added
lease to file but still remain in edit mode to make changes.

If the user does not make any changes, the lease is immediately saved
and there is no second click required to write it to file.

This a more natural flow that is expected by almost all users of this
feature.

Fixes: #12050
Signed-off-by: Bernhard Bitsch <bbitsch@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/dhcp.cgi