summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/services_captiveportal_vouchers_edit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/usr/local/www/services_captiveportal_vouchers_edit.php b/src/usr/local/www/services_captiveportal_vouchers_edit.php
index 8fbf69e..13531ae 100644
--- a/src/usr/local/www/services_captiveportal_vouchers_edit.php
+++ b/src/usr/local/www/services_captiveportal_vouchers_edit.php
@@ -130,6 +130,8 @@ if ($_POST) {
// Look for duplicate roll #
foreach ($a_roll as $re) {
+ if (isset($id) && $a_roll[$id] && $a_roll[$id] === $re)
+ continue;
if ($re['number'] == $_POST['number']) {
$input_errors[] = sprintf(gettext("Roll number %s already exists."), $_POST['number']);
break;
OpenPOWER on IntegriCloud