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

Inline edit 'member of' not working by keyboard typing values #9150

Open
verbeckii opened this issue May 26, 2021 · 0 comments
Open

Inline edit 'member of' not working by keyboard typing values #9150

verbeckii opened this issue May 26, 2021 · 0 comments
Labels
Area: Module Issues & PRs related to modules that do not have specific label Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Type: Bug Bugs within the core SuiteCRM codebase

Comments

@verbeckii
Copy link

Issue

The Account module has a 'Member of' field and this field doesn't save a value in 'Inline edit mode' if it was entered by keyboard typing and trying to save by using the "Enter" keyboard or click on accept icon
It only saves if we use 'popup' menu for selecting accounts...

image

Expected Behavior

It should save doesn't matter how a value was entered - by using 'popup menu' or manually typing

Actual Behavior

When trying to save using keyboard typing it saves nothing

I've created a topic on SuiteCRM Forum before and pgr compares two GET requests.
The first one is which doesn't work (when we trying to keyboard typing )

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

and the second one which works (it when we save with 'popup' menu)

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

and assumes
'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'

https://community.suitecrm.com/t/inline-edit-not-working-using-enter/74356

All logs are empty

Possible Fix

pgr suggest maybe something happened with

and function getRelateFieldJS in InlineEditing/InlineEditing.php'

Steps to Reproduce

  1. go to the Account module, listview any record
  2. find 'Member of' field and try Inline edit it
  3. start typing any of your existing accounts, you can full type it or just select suggestion in a dropdown list
  4. try to save this typed value by 'Enter' keyboard or "accept" icon on the right

NOTE:
'Member of' is a one-to-mane SELF module relationship (for example this case it one-to-many relationship between Accounts and Accounts)
In my SuiteCRM I also copied kind of this functional to other my custom module and it all have the same issue

Your Environment

  • SuiteCRM Version used: 7.11.18
  • Browser name and version: Chrome
  • Environment name and version : Mysql 5.7 / PHP 7.3
  • Operating System and version : Ubuntu 20.04
@johnM2401 johnM2401 added Area: Module Issues & PRs related to modules that do not have specific label Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Type: Bug Bugs within the core SuiteCRM codebase labels May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Module Issues & PRs related to modules that do not have specific label Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

2 participants