Posted by nonsie on May 14, 2009 at 10:12pm
| 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
Patch attached against dev version
#2
Committed
#3
Automatically closed -- issue fixed for 2 weeks with no activity.
#4
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 :)