Inline edit not working using "Enter"

Hello

I have Account module with default one-to-many self-relationship named "Organization Member "
so a while time ago I renamed it’s to “parent Account”
Right now I facing with this problem. When I go to Account module -> select any record-> go to detail view -> try to Inline edit “parent Account” field and if I try to type name and save it’s using keyboard “enter” it doesn’t saved.
The field not filled.But if I try touse “Select” I can save it with keyboard “Enter”

I have suitecrm v7.11.15 PHP 7.4 MariaDB
I trying QRB, rebuild relationship

Don’t use PHP 7.4, it’s not supported, I think you already know that…

thanks for reply

Yes, now I know Php 7.4 isn’t supported but I didn’t knew that when I first installed suitecrm

but I think in this case it is not the reason,right?
or I should downgrade to PHP 7.3 for fix?

Yes I think you should definitely downgrade, unless you feel comfortable facing frequent PHP problems, and diagnosing them and contributing fixes for the future SuiteCRM PHP 7.4 compatibility.

I personally won’t spend much time looking at threads here on Forums only to end up discovering some PHP incompatibility, it just doesn’t compensate, wasting time on this sort of troubleshooting…

hi

after a long time, I remember this issue

Now I have Suitecrm 7.11.18 and PHP 7.3
But I still have an issue with saving Inline parent relationship with keyboard “Enter”

What I did:

  1. go to Account module
  2. trying to use Inline edit on Parent Account field
  3. I just type “sales” and then click the needed value in dropdown
  4. save using keyboard “Enter” / or the right “accept icon”

NOTE:
this work if I use “Select” icon
all above working well with other relationship/relate fields (which not self one-to-many relationship)

You guys might get some more clues about this if you track the AJAX requests on the browser’s console (Network tab). Can you spot a different pattern when it works and when it doesn’t?

thanks for the advice checking Network Tab

Unfortunately, I don’t found any interesting there

About my working and doesn’t work case:

I just install a new fresh suitecrm
Go to Account Module
Create a new two records, named those as ‘test’ and ‘main test’
Next, I open ‘test’ records in detailview and wanna mapped it to ‘main test’ as Member of

So it WORKS well if I use “select” icon

but it Donesn’t work if I just starting typing “main test” and trying to save it with press keyboard ‘Enter’ or click on ‘accept’ icon

Maybe my screenshots can shown more details

So I see that “Member of” in Account module don’t save value if it was manually typing or it was starting typing and just click on the needed dropdown list position

Can anyone please confirm that he has no problem with
1.go to in Account module in any recorded detail view
2. Try Inline edit “Member of”
3. Don’t use ‘select’ icon just type your needed record name
4. try to Save this by pressing ‘Enter’ or just click on image

The call that doesn’t work:

GET http://10.0.0.200/index.php?module=Home&action=saveHTMLField&field=parent_name&current_module=Accounts&id=9f567952-3591-ec6d-f79e-60a410aa6b82&value=&view=DetailView&parent_type=&to_pdf=true

The one that works:

GET http://10.0.0.200/index.php?module=Home&action=saveHTMLField&field=parent_name&current_module=Accounts&id=9f567952-3591-ec6d-f79e-60a410aa6b82&value=bbb8d630-82aa-9900-2d33-60a410dd8220&view=DetailView&parent_type=&to_pdf=true

The difference is that value variable not being set.

Have a look at everything mentioning “relate” in InlineEditing/inlineEditing.js

and function getRelateFieldJS in InlineEditing/InlineEditing.php

it seems like a bug, right?

1 Like

I created a GitHub issue

2 Likes