Download & Extend

Using Domain User Default with Domain Access 2.x version

Project:Domain User Default
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

2.x version of DA now stores default domain in the database and is passed as 0 not -1. This requires executing the following update when upgrading from 1.x to 2.x:

function domain_user_default_update_6200() {
$ret = array();
$ret[] = update_sql("UPDATE {domain_user_default} SET domain_id = 0 WHERE domain_id = -1");
return $ret;
}

Comments

#1

Version:6.x-1.0» 6.x-1.x-dev

Patch attached against dev version

AttachmentSize
463034-domain_user_default.install.patch 736 bytes

#2

Status:active» fixed

Committed

#3

Status:fixed» closed (fixed)

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

#4

Status:closed (fixed)» active

Hey,
there is still a little Problem with this. If a User set the default domain as "his" default domain it goes as "-1" into the database.. When this happens it will not work correctly :)