aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-10-22 00:58:56 +0100
committerJustin Clark-Casey (justincc)2011-10-22 00:58:56 +0100
commit30320505fa54640baf4ecaff8bb743f62ef01f86 (patch)
tree5721e027a330b55d23d6f4a04c85242460c4b7f1 /OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
parentcorrect misleading method doc on CreateNotecardAsset() (diff)
downloadopensim-SC-30320505fa54640baf4ecaff8bb743f62ef01f86.zip
opensim-SC-30320505fa54640baf4ecaff8bb743f62ef01f86.tar.gz
opensim-SC-30320505fa54640baf4ecaff8bb743f62ef01f86.tar.bz2
opensim-SC-30320505fa54640baf4ecaff8bb743f62ef01f86.tar.xz
redirect UserInventoryHelpers to use a different CreateNotecardAsset() so we can comment out some inconsistency
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