This commit is contained in:
@@ -175,7 +175,7 @@ namespace AyaNova.Api.Controllers
|
||||
//Is it an attachable type of object?
|
||||
if (!badRequest)
|
||||
{
|
||||
if (!attachToObject.IsAttachable)
|
||||
if (!attachToObject.IsCoreBizObject)
|
||||
{
|
||||
badRequest = true;
|
||||
errorMessage = attachToObject.ObjectType.ToString() + " - AttachToObjectType does not support attachments";
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace AyaNova.Api.Controllers
|
||||
string name = t.ToString();
|
||||
if (t.HasAttribute(typeof(CoreBizObjectAttribute)))
|
||||
{
|
||||
name += " [Attachable]";
|
||||
name += " [CoreBizObject]";
|
||||
}
|
||||
ReturnList.Add(new NameIdItem() { Name = name, Id = (long)t });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user