Browse Source

UiFix: set default custom docroot domain to the current edited domain

Robert Zollner 5 years ago
parent
commit
dfacbe99ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/templates/admin/edit_web.html

+ 1 - 1
web/templates/admin/edit_web.html

@@ -262,7 +262,7 @@
                                                 <select class="vst-list" name="v-custom-doc-domain">
                                                 <?php foreach ($user_domains as $domain): ?>
                                                     <option value="<?php echo $domain;?>"
-                                                        <?=($v_custom_doc_domain === $domain)?' selected="selected" ':''; ?>>
+                                                        <?=($v_custom_doc_domain === $domain || (empty($v_custom_doc_domain) && $domain === $v_domain))?' selected="selected" ':''; ?>>
                                                         <?php echo $domain;?>
                                                     </option>
                                                 <?php endforeach; ?>