Changeset 3998


Ignore:
Timestamp:
Nov 26, 2007, 9:28:19 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

References #825: Include items 'shared to me' by default

The default settings were never copied to new contexts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/SessionControl.java

    r3857 r3998  
    11631163    ContextKey contextKey = new ContextKey(item, subContext);
    11641164    ItemContext current = currentContexts.get(contextKey);
     1165    boolean forceCopy = false;
    11651166    if (current == null)
    11661167    {
     
    11741175        // Create new context
    11751176        current = new ItemContext(item, subContext, ItemContext.DEFAULT_NAME);
     1177        forceCopy = true;
    11761178      }
    11771179      currentContexts.put(contextKey, current);
    11781180    }
    1179     if (defaultContext != null) current.copyFrom(defaultContext, false);
     1181    if (defaultContext != null) current.copyFrom(defaultContext, forceCopy);
    11801182    return current;
    11811183  }
Note: See TracChangeset for help on using the changeset viewer.