|
@@ -523,9 +523,9 @@ namespace PRSServer
|
|
|
if (remaining.Parts.Count < 2) return request.Respond().Status(ResponseStatus.NotFound);
|
|
|
var formTypeName = remaining.Parts[1].Value;
|
|
|
var formType = GetPersistentRemotableEntities(formTypeName).FirstOrDefault();
|
|
|
- if (formType == null || !formType.IsSubclassOfRawGeneric(typeof(EntityForm<,,>))) return request.Respond().Status(ResponseStatus.NotFound);
|
|
|
+ if (formType == null || !formType.IsSubclassOfRawGeneric(typeof(BaseEntityForm<,,>))) return request.Respond().Status(ResponseStatus.NotFound);
|
|
|
|
|
|
- var entityTypes = formType.GetSuperclassDefinition(typeof(EntityForm<,,>)).GetGenericArguments();
|
|
|
+ var entityTypes = formType.GetSuperclassDefinition(typeof(BaseEntityForm<,,>)).GetGenericArguments();
|
|
|
|
|
|
var genericMethod = typeof(WebHandler).GetMethod(nameof(HandleFormSubmissionResolvedGeneric), BindingFlags.Instance | BindingFlags.NonPublic);
|
|
|
return genericMethod.MakeGenericMethod(formType, entityTypes[1], entityTypes[0]).Invoke(this, new object[] { request, user }) as
|