Skip to content

Commit dfacbe9

Browse files
committed
UiFix: set default custom docroot domain to the current edited domain
1 parent 5a076a6 commit dfacbe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/templates/admin/edit_web.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
<select class="vst-list" name="v-custom-doc-domain">
263263
<?php foreach ($user_domains as $domain): ?>
264264
<option value="<?php echo $domain;?>"
265-
<?=($v_custom_doc_domain === $domain)?' selected="selected" ':''; ?>>
265+
<?=($v_custom_doc_domain === $domain || (empty($v_custom_doc_domain) && $domain === $v_domain))?' selected="selected" ':''; ?>>
266266
<?php echo $domain;?>
267267
</option>
268268
<?php endforeach; ?>

0 commit comments

Comments
 (0)