aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs')
-rw-r--r--OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
index 0de38c2..fdc60d8 100644
--- a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
+++ b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
@@ -86,11 +86,18 @@ namespace OpenSim.Tests.Common
86 AssetBase asset = null; 86 AssetBase asset = null;
87 87
88 if (type == InventoryType.Notecard) 88 if (type == InventoryType.Notecard)
89 asset = AssetHelpers.CreateNotecardAsset(scene, userId); 89 {
90 asset = AssetHelpers.CreateNotecardAsset();
91 asset.CreatorID = userId.ToString();
92 }
90 else if (type == InventoryType.Object) 93 else if (type == InventoryType.Object)
94 {
91 asset = AssetHelpers.CreateAsset(assetId, SceneHelpers.CreateSceneObject(1, userId)); 95 asset = AssetHelpers.CreateAsset(assetId, SceneHelpers.CreateSceneObject(1, userId));
96 }
92 else 97 else
98 {
93 throw new Exception(string.Format("Inventory type {0} not supported", type)); 99 throw new Exception(string.Format("Inventory type {0} not supported", type));
100 }
94 101
95 scene.AssetService.Store(asset); 102 scene.AssetService.Store(asset);
96 103