Merge branch 'master' of github.com:tuxis-ie/nsedit

This commit is contained in:
Mark Schouten 2015-09-17 21:28:51 +02:00
commit da932b0820
5 changed files with 64 additions and 7 deletions

View file

@ -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