Linked Admin Views advanced Array notation is stripped from the Parent Key field #1002

Closed
opened 2023-07-11 09:10:42 +00:00 by Tom van der Laan · 5 comments

Steps to reproduce the issue

Create a linked admin view where parent id looks like this: role_ids-A>.

Expected result

saved properly

Actual result

everything stripped.

Cause

The Parent Key Field has filter called "WORD" instead of "STRING". Changing this to string would fix the problem probably because the Child Key field uses "STRING" and there it works just fine.

### Steps to reproduce the issue Create a linked admin view where parent id looks like this: role_ids-A>. ### Expected result saved properly ### Actual result everything stripped. ### Cause The Parent Key Field has filter called "WORD" instead of "STRING". Changing this to string would fix the problem probably because the Child Key field uses "STRING" and there it works just fine.
Author
Member

confirmed changing it to STRING fixes the issue.

confirmed changing it to STRING fixes the issue.
Owner

Can you give me more details... where are you changing it to string?

Can you give me more details... where are you changing it to string?
Author
Member

Hi, yes sorry.

It's this file & line

filter="WORD"

Hi, yes sorry. It's this file & line https://git.vdm.dev/joomla/Component-Builder/src/commit/0d5597e37fa7f247b5f42cc983accc710301b505/admin/models/forms/admin_view.xml#L734
Owner

okay that seems simple enough 👍

I will add the change in the next update.

okay that seems simple enough 👍 I will add the change in the next update.
Author
Member

Yeah just a setting in JCB for JCB haha.

Yeah just a setting in JCB for JCB haha.
Tom van der Laan added the
Bug
label 2023-08-30 22:41:14 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1002
No description provided.