Download & Extend

Stop domain switching during admin

Project:Domain Access
Version:6.x-2.0-rc6
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

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.

AttachmentSize
412156-no-switch.patch 2.19 KB

#2

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.

#3

Status:fixed» closed (fixed)

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

#4

Status:closed (fixed)» needs work

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

#5

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

AttachmentSize
412156-conf.patch 4.32 KB

#6

Status:needs work» fixed

Committed to HEAD.

#7

Status:fixed» closed (fixed)

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