Skip to content

Commit 029167a

Browse files
committed
Removed management method 'mailaccount' as long as maildomain hook is not implemented
1 parent e3ba298 commit 029167a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

interface/web/js/xmpp_domain_registration.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
$('document').ready(function(){
2+
// Not needed as long as maildomain hook is not implemented
3+
return;
24
$('#management_method').on('select2-selecting', function(e){
35
val = e.choice ? e.choice.id : e.target.selectedIndex;
46
if(val == 0){

interface/web/mail/templates/xmpp_domain_edit.htm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,16 @@ <h1><tmpl_var name="list_head_txt"></h1>
7373

7474

7575

76-
76+
<!--
77+
management by maildomain is currently not supported
7778
<div class="form-group">
7879
<label for="management_method" class="col-sm-3 control-label">{tmpl_var name='management_method_txt'}</label>
7980
<div class="col-sm-9"><select name="management_method" id="management_method" class="form-control">
8081
{tmpl_var name='management_method'}
8182
</select></div>
8283
</div>
84+
-->
85+
<input type="hidden" name="management_method" id="management_method" value="0" />
8386

8487
<div id="toggle-management-normal" class="collapse">
8588
<!--
@@ -92,7 +95,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
9295
</div-->
9396
</div>
9497
<input type="hidden" name="public_registration" id="public_registration" value="n" />
95-
<div id="toggle-registration-closed" class="collapse">
98+
<div id="toggle-registration-closed" class="collapse in">
9699
<div class="form-group">
97100
<label for="registration_url" class="col-sm-3 control-label">{tmpl_var name='registration_url_txt'}</label>
98101
<div class="col-sm-9">

interface/web/mail/xmpp_domain_edit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ function onSubmit() {
264264

265265
// Read management method
266266
if(isset($this->dataRecord["management_method"]))
267+
// Set management method to 0 as long as the mailaccount hook is not implemented
268+
$this->dataRecord["management_method"] = 0;
267269
switch($this->dataRecord["management_method"]){
268270
case 0:
269271
$this->dataRecord["management_method"] = 'normal';

0 commit comments

Comments
 (0)