From c7ae7f5de1a8356be9a2d3982cb538ed0ad2fb09 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Mon, 18 May 2015 13:52:30 +0200 Subject: [PATCH] This should fix the duplication of records when changing the recordtype --- zones.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zones.php b/zones.php index 1b77364..0059309 100644 --- a/zones.php +++ b/zones.php @@ -604,8 +604,8 @@ case "editrecord": $record = make_record($zone, $_POST); - if ($record['name'] !== $old_record['name']) { - # rename: + if ($record['name'] !== $old_record['name'] || $record['type'] !== $old_record['type']) { + # rename or retype: $newRecords = get_records_by_name_type($zone, $record['name'], $record['type']); array_push($newRecords, $record); update_records($zone, $old_record, $records); # remove from old list