fix sql-query when editing a customer; check for dnsenabled flag in customer-domain-view template

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-05-18 13:32:44 +02:00
parent b4c7fb574c
commit fa60c17dbc
2 changed files with 2 additions and 3 deletions

View File

@@ -724,7 +724,6 @@ if ($page == 'customers'
`mysqls` = :mysqls, `mysqls` = :mysqls,
`standardsubdomain` = '0', `standardsubdomain` = '0',
`phpenabled` = :phpenabled, `phpenabled` = :phpenabled,
`dnsenabled` = :dnsenabled,
`imap` = :imap, `imap` = :imap,
`pop3` = :pop3, `pop3` = :pop3,
`perlenabled` = :perlenabled, `perlenabled` = :perlenabled,
@@ -1484,7 +1483,7 @@ if ($page == 'customers'
`imap` = :imap, `imap` = :imap,
`pop3` = :pop3, `pop3` = :pop3,
`perlenabled` = :perlenabled, `perlenabled` = :perlenabled,
`dnsenabled` = :dnsenabled `dnsenabled` = :dnsenabled,
`custom_notes` = :custom_notes, `custom_notes` = :custom_notes,
`custom_notes_show` = :custom_notes_show `custom_notes_show` = :custom_notes_show
WHERE `customerid` = :customerid" WHERE `customerid` = :customerid"

View File

@@ -4,7 +4,7 @@ $header
<h2> <h2>
<img src="templates/{$theme}/assets/img/icons/domain_edit_big.png" alt="{$title}" />&nbsp; <img src="templates/{$theme}/assets/img/icons/domain_edit_big.png" alt="{$title}" />&nbsp;
{$title} {$title}
<if $result['isbinddomain'] == '1' && Settings::Get('system.dnsenabled') == '1'> <if $result['isbinddomain'] == '1' && $userinfo['dnsenabled'] == '1' && Settings::Get('system.dnsenabled') == '1'>
&nbsp;(<small><a href="{$linker->getLink(array('section' => 'domains', 'page' => 'domaindnseditor', 'domain_id' => $id))}">{$lng['dnseditor']['edit']}</a></small>) &nbsp;(<small><a href="{$linker->getLink(array('section' => 'domains', 'page' => 'domaindnseditor', 'domain_id' => $id))}">{$lng['dnseditor']['edit']}</a></small>)
</if> </if>
</h2> </h2>