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

SS4.1: Gridfield sorting not working any more with text-target-lenght installed #16

Closed
wernerkrauss opened this issue Apr 20, 2018 · 6 comments

Comments

@wernerkrauss
Copy link

I ran into the same issue like symbiote/silverstripe-gridfieldextensions#246 today when I wasn't able to sort a gridfield and got a js error. Then I tried out the undefinedoffset sorting module, which threw another error, but works fine on a similar project (where text-target-length and some other modules are not required).

After disabling this extension, it started to work again.

Other gridfield related modules installed in this project:

  • userforms
  • focuspoint
  • bulkuploader
  • blog
  • gridfieldextensions

HTH

@jonom
Copy link
Owner

jonom commented Apr 23, 2018

Judging by the thread in that module the problem is not triggered only by the presence of this module so I don't think anything needs to be fixed here - but I'll leave it open for now. Can you please close if a fix is introduced elsewhere.

@wernerkrauss
Copy link
Author

@jonom sure, but I guess your module also does some JavaScript "magic" that is not compatible with either SS4 or SS4.1's backend and/or those modules. So - if we can find what is causing that error, it can also be fixed it in this module.

@a2nt
Copy link
Contributor

a2nt commented May 27, 2018

If u will remove 2 lines at JonoM\SilverStripeTextTargetLengt\SilverStripeTextTargetLengt:

Requirements::javascript('silverstripe/admin:thirdparty/jquery/jquery.js');
Requirements::javascript('silverstripe/admin:thirdparty/jquery-entwine/dist/jquery.entwine-dist.js');

everything will work ok. The issue produced by overwriting core CMS libraries

@a2nt a2nt mentioned this issue May 27, 2018
@jonom
Copy link
Owner

jonom commented May 28, 2018

Interesting. So where are those libs loaded from in the CMS if not from there? Are they bundled in to a different js file?

@a2nt
Copy link
Contributor

a2nt commented May 28, 2018

you don't need to load them cuz it's being loaded at the LeftAndMain already.
And it comes from /resources/vendor/silverstripe/admin/client/dist/js/vendor.js
Take a look at chrome dev-console:
screenshot from 2018-05-29 00-16-17

@jonom
Copy link
Owner

jonom commented May 28, 2018

Fixed (hopefully) with #17

@jonom jonom closed this as completed May 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants