Inline editing in 7.3

Inline editing is working fine while using an admin account but is not working for user accounts!

any help would be greatly appreciated.

~ Sam

Hi,

We are aware of this issue, It has been logged on our Github:#363

Regards, John

I get the same exact error. Do you have the correct permissions on your server and did you change your config options?

Upon further investigation it appears that my production inline editing file is different from my local one. My local machine has the beta 7.3 version installed and inline editing works fine. My production app is an upgraded version 7.3.1 from 7.3. Maybe something wasn’t configured right in the upgrade?

I upgraded from 7.1 to 7.3 on an existing install and have this problem.

Uncaught TypeError: Cannot read property ‘outerHTML’ of undefined(anonymous function) @ inlineEditing.js:44

var inlineEditSaveButtonImg = “themes/SuiteR/images/inline_edit_save_icon.svg”;
var inlineEditIcon = $("#inline_edit_icon")[0].outerHTML;

The first fix at the link below gets rid of the problem with only the admin being able to use inline editing.

https://github.com/salesagility/SuiteCRM/pull/451/files

Briefly, in include/InlineEditing/InlineEditing.php, on line 499, change the “&&” to “||”. Presto.

Even with a clean install of SuiteCRM 7.3.1 I get an error when trying to save during the inline editing…

[Tue Sep 15 10:29:23 2015] [error] [client 10.92.40.125] PHP Warning: Missing argument 5 for formatDisplayValue(), called in /home/www/html/sonesbox.suitecrm.7.3.1.ib4t.co/include/InlineEditing/InlineEditing.php on line 332 and defined in /home/www/html/sonesbox.suitecrm.7.3.1.ib4t.co/include/InlineEditing/InlineEditing.php on line 337, referer: http://sonesbox.suitecrm.7.3.1.ib4t.co/index.php?action=ajaxui
[Tue Sep 15 10:29:23 2015] [error] [client 10.92.40.125] PHP Notice: Undefined index: DetailView in /home/www/html/sonesbox.suitecrm.7.3.1.ib4t.co/include/generic/SugarWidgets/SugarWidgetSubPanelDetailViewLink.php on line 124, referer: http://sonesbox.suitecrm.7.3.1.ib4t.co/index.php?action=ajaxui
[Tue Sep 15 10:29:23 2015] [error] [client 10.92.40.125] PHP Notice: Undefined index: DetailView in /home/www/html/sonesbox.suitecrm.7.3.1.ib4t.co/include/generic/SugarWidgets/SugarWidgetSubPanelDetailViewLink.php on line 125, referer: http://sonesbox.suitecrm.7.3.1.ib4t.co/index.php?action=ajaxui
[Tue Sep 15 10:29:23 2015] [error] [client 10.92.40.125] PHP Notice: Undefined index: owner_module in /home/www/html/sonesbox.suitecrm.7.3.1.ib4t.co/include/generic/SugarWidgets/SugarWidgetSubPanelDetailViewLink.php on line 126, referer: http://sonesbox.suitecrm.7.3.1.ib4t.co/index.php?action=ajaxui
[Tue Sep 15 10:29:23 2015] [error] [client 10.92.40.125] PHP Notice: Undefined index: owner_id in /home/www/html/sonesbox.suitecrm.7.3.1.ib4t.co/include/generic/SugarWidgets/SugarWidgetSubPanelDetailViewLink.php on line 126, referer: http://sonesbox.suitecrm.7.3.1.ib4t.co/index.php?action=ajaxui

How do we get rid of this error?

Hi sone,

Are you trying to edit as a User or an Administrator? If you are trying to edit as a User, this is a bug that is known: #363
It is currently being worked on at the moment so hopefully it should be resolved soon.

If you’re trying to edit as an Administrator, could you please ensure that your Permissions are correct and that you have run Quick Repair/Rebuild since Installing/upgrading.
Also, these errors look like Warnings/Notices which should be suppressed on a Production instance. You could try setting error_report to 0 and testing again.

Hi John

Yes the only account I have on the new install of SuiteCRM 7.3.1 is an Admin account. I have checked permission and done the repair and rebuild many times but still no luck

I’ve copied the post from firebug as a curl request below. As you can see the response given back does not show the updated value for name “Foot for though AAAA”


 curl 'http://sonesbox.suitecrm.7.3.1.ib4t.co/index.php?module=Home&action=saveHTMLField&field=name&current_module=Contacts&id=8304cbff-7396-186d-7c2d-55f73ca81bb9&value=Food+for+though+AAAA&view=index&to_pdf=true' -H 'Host: sonesbox.suitecrm.7.3.1.ib4t.co' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 FirePHP/0.7.4' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'X-Requested-With: XMLHttpRequest' -H 'Referer: http://sonesbox.suitecrm.7.3.1.ib4t.co/index.php?action=ajaxui' -H 'Cookie: sugar_user_theme=SuiteR; ck_login_id_20=1; ck_login_language_20=en_us; PHPSESSID=6rgh7am8t4eqgf6k8745r595e1' -H 'x-insight: activate' -H 'Connection: keep-alive'
<b><a href="?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DContacts%26action%3DDetailView%26record%3D8304cbff-7396-186d-7c2d-55f73ca81bb9" >Food for though</a></b>

Hi sone,
You could try disabling AJAX for the module that you see the issue on. You can do this by going to Admin > System Settings > “Configure AJAX User Interface”

In this menu, drag the modules that are causing issue from the Enabled list into the Disabled List. Then save and do a Quick Repair/Rebuild, clear your cache and try again.

I had tried all of the above suggestions and nothing worked, until I looked closer and I had the same options for ‘enable_line_editing_list’ and ‘enable_line_editing_detail’ in both config.php and config_override.php.

Once I removed the options in config.php, and then followed the directions above by disabling both options in Administration, and then Repair and the error went away.

This was exactly what I needed…

Did not work for me…

It also doesn’t work for me in demo… and it is 7.3.1 now. It does work on my on-site development system… just sharing this info for others…

[quote=“MatthewJones” post=21778]

I had this error, and inlineEditing in cases Detail view did not work in Suite7 Theme, though it did work in SuiteR Theme,
I fixed it by editing the include/InlineEditing/inlineEditing.js file, I commented out the following lines:

var inlineEditIcon = $("#inline_edit_icon")[0].outerHTML;
$(".inlineEditActive").html(value + ‘

’ + inlineEditIcon + ‘
’);

Commented out:

// var inlineEditIcon = $("#inline_edit_icon")[0].outerHTML;
// $(".inlineEditActive").html(value + ‘

’ + inlineEditIcon + ‘
’);

After this cases detail view inline editing started working.

Best way to solve it is to just replace the word “outer” by “inner” in the “include/InlineEditing/inlineEditing.js” file.

Inspect feature in Google Chrome tells you where to look for it, as it shows the error that is preventing from editing inilne.