Currently, there are a number of admin functions -- Domain Conf, Domain Theme, Domain Content, Domain Prefix -- that force the user to switch domains to perform an administrative task.

This was easier to support in the early versions, since domain-specific variables and rules load automatically. However, the addition of Domain Alias makes many of these jumps undesirable.

We need to reconfigure these forms so they can work from any active domain, loading the proper variables as needed.

Comments

agentrickard’s picture

StatusFileSize
new2.19 KB

I just committed the first step to this patch, which adds a domain_set_domain($domain_id) function and alters domain_content to work with the new function.

Next up: domain_cron() and domain_conf.

agentrickard’s picture

Status: Active » Fixed

This has been completed in HEAD.

Note the new function domain_set_domain($domain_id, $bootstrap = FALSE), which will simulate the loading of alternate domains.

Status: Fixed » Closed (fixed)

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

agentrickard’s picture

Status: Closed (fixed) » Needs work

It looks like domain_set_domain() is not loading variables as expected for the root domain.

agentrickard’s picture

StatusFileSize
new4.32 KB

The attached patch fixes this issue and vastly improves domain_conf_variable_get().

agentrickard’s picture

Status: Needs work » Fixed

Committed to HEAD.

Status: Fixed » Closed (fixed)

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