create sub-server, database prefix

in my server template, i have set "prefix for additional databases" to "${USER}_"

if i edit/add databases on a server, the form properly shows that this is enforced, by rendering the form as "myadminguy_[yourdbname]"

however, if i go to add a new sub-server to an account, the form is unaware of the feature, and will attempt to create a new sub-server with a database named after the subserver itself. virtualmin fails to create the server with the message "Failed to create virtual server : Database name must start with myadminguy_"

so, the "create new sub-server" form needs to behave the same way as the add/edit databases option does. in other words: be aware of enforced prefixes.

Status: 
Closed (fixed)

Comments

I see the error here - the DB name restriction shouldn't be enforced in the case where it is selected automatically. I'll fix that in the next release.

Automatically closed -- issue fixed for 2 weeks with no activity.