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

Problem with relationship field with inline_create attribute #3025

Closed
dauvray opened this issue Jul 9, 2020 · 4 comments
Closed

Problem with relationship field with inline_create attribute #3025

dauvray opened this issue Jul 9, 2020 · 4 comments
Assignees
Labels

Comments

@dauvray
Copy link
Contributor

dauvray commented Jul 9, 2020

Bug report

What I did

When i'm using the relationship field type, the ajax query don't load my items, when i set the inline_create attribute.
All is good when i remove the attribute

What I expected to happen

The list item must load

What happened

no result, no ajax query

What I've already tried to fix it

the problem come from the file : crud/fields/relationship/fetch_or_create.blade.php

line 113 : if i remove the class select2_field , everything works fine

maybe a relation with : #2597

Backpack, Laravel, PHP, DB version

PHP VERSION:

PHP 7.3.19-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Jun 12 2020 07:48:10) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.19, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.19-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.9.6, Copyright (c) 2002-2020, by Derick Rethans

LARAVEL VERSION:

v7.19.0@67d6d9688122dcf6c449b74ddc873fc9934e81e6

BACKPACK VERSION:

4.1.14@f4a6ad91f2aa3760ffe963c5cd87d2b533803323

@ikkebra
Copy link

ikkebra commented Jul 9, 2020

I have this same issue.

@pxpm
Copy link
Contributor

pxpm commented Jul 10, 2020

Hey guys, thanks for report.

I don't think that a css class could be related with the field not working. In fact that class is present from the beggining and the field works as you can see in https://demo.backpackforlaravel.com/

Could you please provide field definition ? Any error message in console or laravel logs ?

I could not reproduce this, in fact we have some relationship fields with inline create working.

I wait for more input from you guys.

Best,

@pxpm pxpm changed the title [Bug] relationship field issue with inline_create attribute Problem with relationship field with inline_create attribute Jul 10, 2020
@dauvray
Copy link
Contributor Author

dauvray commented Jul 10, 2020

Ok, after some tests everythings works fine. you're right. It's a good job.
Removing the css class allows to keep a uniformity with the other fields in my case.

@pxpm
Copy link
Contributor

pxpm commented Jul 10, 2020

If there is some other issue please feel free to open an issue request for that specific issue.

Thanks for letting us know that this is solved.

Wish you the best,
Pedro

@pxpm pxpm closed this as completed Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants