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

Can not save dashlets due to server configuration #6846

Open
ghost opened this issue Jan 26, 2019 · 5 comments
Open

Can not save dashlets due to server configuration #6846

ghost opened this issue Jan 26, 2019 · 5 comments
Labels
Priority:Moderate Issues & PRs that are minor; broken styling, cosmetic, warnings - there are practical workarounds Type:Bug Bugs within the core SuiteCRM codebase

Comments

@ghost
Copy link

ghost commented Jan 26, 2019

Issue

In some installations dashlets can not be added.

Expected Behavior

When click on dashlet dialog should close and dashboard should reload.

Actual Behavior

nothing happening on click

Possible Fix

In my sugar js file when pulling ajax response output sent from server should be trimmed like this:
somevariable = somevariable.trim()

  • SuiteCRM Version used: latest
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)):
  • Environment name and version (MySQL, PHP 7, croatian language)
  • Operating System and version; centOS
@Dillon-Brown
Copy link
Contributor

@AceWT So far i'm unable to replicate this, can you provide more information? (PHP version, browser). Thanks.

@Dillon-Brown Dillon-Brown added the Status:Requires Updates Issues & PRs which requires input or update from the author label Feb 6, 2019
@ghost
Copy link
Author

ghost commented Feb 6, 2019

it seems ajax endpoint returns output and new line, this breaks javascript.

@Dillon-Brown Dillon-Brown removed the Status:Requires Updates Issues & PRs which requires input or update from the author label Feb 7, 2019
@samus-aran
Copy link
Contributor

HI @AceWT Not sure if we are still able to replicate this. Is it always the same dashlet or is different ones? Are you using a language pack other than english when this issue happens?

@samus-aran samus-aran added the Status:Requires Updates Issues & PRs which requires input or update from the author label Mar 28, 2019
@ghost
Copy link
Author

ghost commented Mar 28, 2019

Hi, yes we are using croatian language, adding .trim() to responses from server fixes problem.

@ghost
Copy link
Author

ghost commented Mar 28, 2019

and for your question it is all dashlets. i do not have language pack installed. i think due to server configuration output has one new line at end

@willrennie willrennie removed the Status:Requires Updates Issues & PRs which requires input or update from the author label Apr 5, 2019
@cameronblaikie cameronblaikie added Type:Bug Bugs within the core SuiteCRM codebase Priority:Moderate Issues & PRs that are minor; broken styling, cosmetic, warnings - there are practical workarounds labels Jun 5, 2019
@cameronblaikie cameronblaikie changed the title Can not save dashlets Can not save dashlets due to server configuration Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:Moderate Issues & PRs that are minor; broken styling, cosmetic, warnings - there are practical workarounds Type:Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

4 participants