From 4a9282e681f9b1a5410028b473af47d0896f81e6 Mon Sep 17 00:00:00 2001 From: BlueWall Date: Mon, 21 Jul 2014 12:42:16 -0400 Subject: Add missing parts to profiles - classified delete --- OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs') diff --git a/OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs b/OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs index d55142e..6721b08 100644 --- a/OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs +++ b/OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs @@ -126,14 +126,14 @@ namespace OpenSim.Server.Handlers } OSDMap request = (OSDMap)json["params"]; - UUID classifiedId = new UUID(request["classifiedID"].AsString()); - - OSDMap res = new OSDMap(); - res["result"] = OSD.FromString("success"); - response.Result = res; - - return true; + UUID classifiedId = new UUID(request["classifiedId"].AsString()); + if(Service.ClassifiedDelete(classifiedId)) + return true; + + response.Error.Code = ErrorCode.InternalError; + response.Error.Message = "data error removing record"; + return false; } public bool ClassifiedInfoRequest(OSDMap json, ref JsonRpcResponse response) -- cgit v1.1