When implementing hook_domainconf(), it eventually adds a "settings" link to the default domain. This link goes to a special form domain_conf_default(). But in D7, the drupal_get_form invocation apparently changed, because I can see:

* Notice : Undefined index: sitename in domain_conf_default() (line 130 in domain/domain_conf/domain_conf.admin.inc).
* Notice : Undefined index: domain_id dans domain_conf_default() (line 143 in domain/domain_conf/domain_conf.admin.inc).

.

Comments

simon georges’s picture

Status: Active » Needs review
StatusFileSize
new648 bytes

Please find the patch attached for 7.x-2.x-dev.

simon georges’s picture

Status: Needs review » Needs work

Additionnal notes :
- the #default_value is not set, because the part with the call to $extra = domain_conf_api(); does not contain a $settings part (relative to the similar call for domains other than default), I'll try to provide a patch for this part as well later (but the patch above is useless if it doesn't allow to see the current value, actually :().
- the code is not the same in 7.x-3.x, settings values is discouraged for default domain, so the logic has changed for this part.

agentrickard’s picture

Let's fix this in 7.x.3 and then backport.

agentrickard’s picture

Status: Needs work » Needs review

Bug does not exist in 7.x.3, since that function was removed.

agentrickard’s picture

Status: Needs review » Fixed
StatusFileSize
new1.52 KB

Missed some other places where &$form_state needs to be passed by reference.

agentrickard’s picture

Status: Fixed » Needs work
agentrickard’s picture

Status: Needs work » Fixed

Nope, still fixed.

Status: Fixed » Closed (fixed)

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