Skip to content
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

Bug in item picker (v17.06.00) #3339

Closed
skarpik opened this issue Apr 1, 2024 · 2 comments
Closed

Bug in item picker (v17.06.00) #3339

skarpik opened this issue Apr 1, 2024 · 2 comments
Assignees

Comments

@skarpik
Copy link
Sponsor

skarpik commented Apr 1, 2024

I'm submitting a

[x] bug report => search github for a similar issue before submitting

...about

[x] edit experience / UI
[x] admin experience UI

Current Behavior / Expected Behavior

For content types that include entities as fields, the Entity/Item picker is empty. If for the picker, I reference a Query-based entity/item picker, everything works as expected.

In a previous version (v17.04.00 or 17.05.00? - I can't remember which), the Entity/Item Picker or the Query-based picker worked as I expected.

This is not a deal breaker. Since I can use a query, I can always make things work but I want to make sure that this is intended behaviour.

Instructions to Reproduce the Problem

I created two simple apps:

  • TestData - has a entity/item-based picker
  • TestQuery - has a query-based picker

For both apps, there is a content type called "EyeColour".
Screenshot 2024-04-01 120125

Both apps, also have a content type called "Person" with the fields "Name" (a string) and "Eyes" (an entity).
Screenshot 2024-04-01 120559

For the TestData app, I used an Entity/Item picker and pointed it to the EyeColour data:
Screenshot 2024-04-01 120738

For the TestQuery app, I created a query of the eye colours and pointed the picker to that query:
Screenshot 2024-04-01 121109

When I go to add data, that's when I run into trouble with the TestData app - the dropdown for eye colours is empty:
Screenshot 2024-04-01 121221

On the other hand, the TestQuery app works as I expected:
Screenshot 2024-04-01 121430

I believe that both approaches should work (entity/item picker vs. query picker) but I may be misunderstanding something.

Your environment

  • 2sxc version(s): 17.06.00
  • Browser: all
  • DNN: 9.13.03
  • Hosting platform: IIS
  • Language: English (I have not tested other languages)
@skarpik
Copy link
Sponsor Author

skarpik commented Apr 2, 2024

I have found the source of the problem! And it is likely me.

Before creating any of the views for the app, I started with the content types. Some of the content types included fields that were entities and used the item/data picker. But the item picker wasn't working - nothing was in the dropdown.

However, if I added the empty template app that 2sxc generates, everything works perfectly. So using the data picker before having at least one instance of the app on a page (and it doesn't seem to matter which view), makes everything work.

In the end, I don't know if I found a bug or not. It might be that my workflow was so idiosyncratic that everything messed up in which case no fix to 2sxc is required. I will leave it to @iJungleboy to decide if there is a problem or not.

iJungleboy added a commit to 2sic/eav-ui that referenced this issue Apr 2, 2024
2sic/2sxc#3339
caused when app is opened through another app
@iJungleboy iJungleboy self-assigned this Apr 2, 2024
@iJungleboy
Copy link
Contributor

Found the root cause, it was app-opened-through-other app.

Fixed in 17.06.01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 17.06.01 LTS
Development

No branches or pull requests

2 participants