-
Notifications
You must be signed in to change notification settings - Fork 144
-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't open select boxes for custom entities that have relations on other custom entities #222
Comments
Hi, I'm trying to replicate this issue in the SimpleSite sample project by adding a public class BlogPostDataModel : ICustomEntityDataModel
{
[MaxLength(1000)]
[Required]
[Display(Description = "A description for display in search results and in the details page meta description.")]
[MultiLineText]
public string ShortDescription { get; set; }
[Image(MinWidth = 460, MinHeight = 460)]
[Display(Name = "Thumbnail Image", Description = "Square image that displays against the blog in the listing page.")]
public int ThumbnailImageAssetId { get; set; }
[Display(Name = "Categories", Description = "Drag and drop to customize the category ordering.")]
[CustomEntityCollection(CategoryCustomEntityDefinition.DefinitionCode, IsOrderable = true)]
public ICollection<int> CategoryIds { get; set; }
[Display(Name = "Category")]
[CustomEntity(CategoryCustomEntityDefinition.DefinitionCode)]
public int CategoryId { get; set; }
} I can't seem to replicate the issue though, is that a simplar property definition to the one you're using? |
I wondered if having two custom entity properties might triger the error so I added an author to my definition and also marked the fields as required (although this is also inferred from the use of public class BlogPostDataModel : ICustomEntityDataModel
{
[MaxLength(1000)]
[Required]
[Display(Description = "A description for display in search results and in the details page meta description.")]
[MultiLineText]
public string ShortDescription { get; set; }
[Image(MinWidth = 460, MinHeight = 460)]
[Display(Name = "Thumbnail Image", Description = "Square image that displays against the blog in the listing page.")]
public int ThumbnailImageAssetId { get; set; }
[Display(Name = "Categories", Description = "Drag and drop to customize the category ordering.")]
[CustomEntityCollection(CategoryCustomEntityDefinition.DefinitionCode, IsOrderable = true)]
public ICollection<int> CategoryIds { get; set; }
[Required]
[Display(Name = "Category")]
[CustomEntity(CategoryCustomEntityDefinition.DefinitionCode)]
public int CategoryId { get; set; }
[Required]
[Display(Name = "Author")]
[CustomEntity(AuthorCustomEntityDefinition.DefinitionCode)]
public int AuthorId { get; set; }
} I still don't see the error. I wonder if maybe there is a problem accessing the custom entity search api when the select box opens? You should see an XHR request to Also, which version are you using? 0.3.2? |
I'll try and make a good repro this weekend! |
It was such good weather this weekend that I've spent most of it in my pool. 😉 [Edit] It might be an idea to treat custom entities that have |
Good spot, yes locales would be the likely culprit as that's all functionality that still needs to be worked on. What you suggest is the intended functionality, so this is a bug and I imagine it is something to do with some misbehaving auto-locale filtering that is trying to automatically filter your author based on the blog locale, but not taking into account that the author is a non-localized entity. I'll investigate a more as part of v0.4. Is the work around acceptable for now? v0.4 is a little way off yet. |
That's ok, this works for now. 👍 |
…ations on other custom entities" by ignoring locale filtering for CE search queries when the CE does not support locales.
Fixed in v0.4 release. |
I'm not sure this is a new issue, but I've noticed it now I'm trying to implement blog posts with a selectable author and category.
When editing an existing blog post it's impossible to open the select box to make another choice.
When creating a new blog post it only seems to become impossible when I've selected an image to accompany the blog post. Since it's required that might also be the reason I can't open the select boxes anymore when editing a post.
I've tried in Safari and Chrome, both trigger no JavaScript errors. So I don't really have a clue where to look for answers.
The text was updated successfully, but these errors were encountered: