Ignore:
Timestamp:
09/19/23 10:40:24 (14 months ago)
Author:
Kris Deugau
Message:

/trunk

Fix an edge case updating rDNS on a netblock. If all but one per-IP field
is blank, and the remaining field is cleared, the removal wouldn't be sent
to dnsadmin because the hash wouldn't have that IP as a key.

Fixed with an extra flag field indicating "this IP had a DNS name", so we
can explicitly set the hash value to so it'll be cleared when passed
down the chain.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/edit.tmpl

    r938 r944  
    8282<tr>
    8383<td><TMPL_VAR NAME=r_ip></td>
    84 <td><input class="host" name="host_<TMPL_VAR NAME=r_ip>" value="<TMPL_VAR NAME=iphost>"></td>
     84<td><input class="host" name="host_<TMPL_VAR NAME=r_ip>" value="<TMPL_VAR NAME=iphost>">
     85<TMPL_IF iphost><input type="hidden" name="was_host_<TMPL_VAR NAME=r_ip>" value="1"></TMPL_IF></td>
    8586</tr>
    8687</TMPL_LOOP>
Note: See TracChangeset for help on using the changeset viewer.