mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-07 00:47:00 +03:00
Merge branch 'master' of github.com:tuxis-ie/nsedit
This commit is contained in:
commit
da932b0820
5 changed files with 64 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue