Skip to content

Commit 3279545

Browse files
author
thom
committed
Add empty option for domain module (#4305)
1 parent 3ce7425 commit 3279545

File tree

9 files changed

+54
-54
lines changed

9 files changed

+54
-54
lines changed

interface/web/dns/dns_slave_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function onShowEnd() {
124124
* The domain-module is in use.
125125
*/
126126
$domains = $app->tools_sites->getDomainModuleDomains("dns_slave", $this->dataRecord["origin"]);
127-
$domain_select = '';
127+
$domain_select = "<option value=''></option>";
128128
if(is_array($domains) && sizeof($domains) > 0) {
129129
/* We have domains in the list, so create the drop-down-list */
130130
foreach( $domains as $domain) {

interface/web/dns/dns_soa_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function onShowEnd() {
192192
* The domain-module is in use.
193193
*/
194194
$domains = $app->tools_sites->getDomainModuleDomains("dns_soa", $this->dataRecord["origin"]);
195-
$domain_select = '';
195+
$domain_select = "<option value=''></option>";
196196
if(is_array($domains) && sizeof($domains) > 0) {
197197
/* We have domains in the list, so create the drop-down-list */
198198
foreach( $domains as $domain) {

interface/web/dns/dns_wizard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
* The domain-module is in use.
198198
*/
199199
$domains = $app->tools_sites->getDomainModuleDomains("dns_soa", 'domain');
200-
$domain_select = '';
200+
$domain_select = "<option value=''></option>";
201201
if(is_array($domains) && sizeof($domains) > 0) {
202202
/* We have domains in the list, so create the drop-down-list */
203203
foreach( $domains as $domain) {

interface/web/mail/mail_domain_catchall_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function onShowEnd() {
7777
// Getting Domains of the user
7878
$sql = "SELECT domain FROM mail_domain WHERE ".$app->tform->getAuthSQL('r');
7979
$domains = $app->db->queryAllRecords($sql);
80-
$domain_select = '';
80+
$domain_select = "<option value=''></option>";
8181
if(is_array($domains)) {
8282
foreach( $domains as $domain) {
8383
$domain['domain'] = $app->functions->idn_decode($domain['domain']);

interface/web/mail/mail_domain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function onShowEnd() {
159159
* The domain-module is in use.
160160
*/
161161
$domains = $app->tools_sites->getDomainModuleDomains("mail_domain", $this->dataRecord["domain"]);
162-
$domain_select = '';
162+
$domain_select = "<option value=''></option>";
163163
if(is_array($domains) && sizeof($domains) > 0) {
164164
/* We have domains in the list, so create the drop-down-list */
165165
foreach( $domains as $domain) {

interface/web/mail/mail_mailinglist_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function onShowEnd() {
112112
// Getting Domains of the user
113113
$sql = "SELECT domain FROM mail_domain WHERE ".$app->tform->getAuthSQL('r').' ORDER BY domain';
114114
$domains = $app->db->queryAllRecords($sql);
115-
$domain_select = '';
115+
$domain_select = "<option value=''></option>";
116116
if(is_array($domains)) {
117117
foreach( $domains as $domain) {
118118
$selected = ($domain["domain"] == $this->dataRecord["domain"])?'SELECTED':'';

interface/web/mail/xmpp_domain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function onShowEnd() {
182182
* The domain-module is in use.
183183
*/
184184
$domains = $app->tools_sites->getDomainModuleDomains("xmpp_domain", $this->dataRecord["domain"]);
185-
$domain_select = '';
185+
$domain_select = "<option value=''></option>";
186186
if(is_array($domains) && sizeof($domains) > 0) {
187187
/* We have domains in the list, so create the drop-down-list */
188188
foreach( $domains as $domain) {

interface/web/sites/web_childdomain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function onShowEnd() {
106106
* The domain-module is in use.
107107
*/
108108
$domains = $app->tools_sites->getDomainModuleDomains($this->_vhostdomain_type == 'subdomain' ? null : "web_domain");
109-
$domain_select = '';
109+
$domain_select = "<option value=''></option>";
110110
$selected_domain = '';
111111
if(is_array($domains) && sizeof($domains) > 0) {
112112
/* We have domains in the list, so create the drop-down-list */

0 commit comments

Comments
 (0)