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

Formview <x-twill::browser> not honoring the :endpoints parameter properly #2717

Open
nikhiltri opened this issue Jan 27, 2025 · 0 comments
Open

Comments

@nikhiltri
Copy link
Contributor

Description

In formview forms, it doesn't seem like the :endpoints property is being assigned in the Browser model. In the Browser constuctor the $endpoints variable does have a value, but none of the assignments of $this->endpoints ever looks at this variable.

Steps to reproduce

Create a formview browser using the :endpoints property. Something like:

<x-twill::browser
    name='welcome_note_section'
    label='Welcome note section'
    max='1'
    endpoints="[
        [
            'label' => 'Articles',
            'value' => '/collection/articlesPublications/digitalPublications/articles/browser'
        ]
    ]"
/>

Expected result

On the form, I expect to see a browser that makes a request to /collection/articlesPublications/digitalPublications/articles/browser?page=1 for content.

Actual result

The browser doesn't show the list box of possible models to add, and requests itself with ?page=1 for browser content.

Versions

Twill version: 3.4.1
Laravel version: 10.19.0
PHP version: 8.2.14
Database engine: PostgreSQL 17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant