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