Skip to content

Commit

Permalink
Add corrections from 2.6.2 that dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
xtophe38 committed Dec 11, 2020
1 parent 2100329 commit c66d72c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions teemip-zone-mgmt/datamodel.teemip-zone-mgmt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1540,8 +1540,8 @@
<code><![CDATA[ public function GetDataString()
{
$sDataName = $this->GetDataNameForDataString();
$oIp = MetaModel::GetObject('IPv6Address', $this->Get('ip_id'), true /* MustBeFound */);
$sIp = $oIp->GetAsCompressed();
$oIp = MetaModel::GetObject('IPv4Address', $this->Get('ip_id'), true /* MustBeFound */);
$sIp = $oIp->Get('ip');
if ($this->Get('overwrite_zone_ttl') == 'yes')
{
$sHtml = str_pad($sDataName, SPACE_OWNER_TO_TTL)." ".str_pad($this->Get('ttl'), SPACE_TTL_TO_CLASS)." IN A ".$sIp;
Expand Down Expand Up @@ -1717,7 +1717,7 @@
{
$sDataName = $this->GetDataNameForDataString();
$oIp = MetaModel::GetObject('IPv6Address', $this->Get('ip_id'), true /* MustBeFound */);
$sIp = $oIp->GetAsCompressed();
$sIp = $oIp->GetName();
if ($this->Get('overwrite_zone_ttl') == 'yes')
{
$sHtml = str_pad($sDataName, SPACE_OWNER_TO_TTL)." ".str_pad($this->Get('ttl'), SPACE_TTL_TO_CLASS)." IN AAAA ".$sIp;
Expand Down

0 comments on commit c66d72c

Please sign in to comment.