-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Fix batch transaction export on D8/9 #19761
Conversation
(Standard links)
|
@MegaphoneJon would it not be easier to just update the addScriptFile to reference the packages directory as per
|
6ca8bac
to
db3ecd3
Compare
@seamuslee001 Perhaps. However, two screens that present the same set of options isn't great UX. I'd rather do the extra work and remove this altogether. |
db3ecd3
to
10c5467
Compare
I can reproduce the problem and agree it's probably better to remove the drupal resources factor. I can test this this week.
Not sure why this is a problem since you need to choose the export format somehow but will try some runs. |
Overall it looks good just maybe one minor glitch and not sure yet if it's my setup. Tested with drupal 9 and drupal 7. And in my comment earlier I think I misread what you were saying - the "Flaky" wasn't referring to just the next sentence in that paragraph it was referring to the whole paragraph. All good.
|
Ok I see what the first Cancel button issue is. Drupal 9 has an equivalent of civi's submitOnce in web/core/misc/form.js: An easy way to see this is when you're at this point just open browser dev tools and remove the So I think this PR is mergeable as-is and the cancel button freeze could be dealt with separately TBD. |
This also happens on other pages, e.g. merge to PDF. Pressing the Submit button disables the Submit button - fine in most production settings because any change to the page will re-enable it. Frustrating during development though.
|
merging as per @demeritcowboy review |
https://lab.civicrm.org/dev/financial/-/issues/169
Overview
2 of the 3 methods to export a batch on D8/9 fail because
jquery.redirect.min.js
can't be found. Full replication details on the ticket.Before
No response when you press "Export".
After
Export proceeds. Also saves an unnecessary modal from popping up.
Technical Details
The Dev console shows the error - "jquery.redirect.min.js" can't be found. This has to do with how the Resource URLs are split into core and packages inside /libraries/civicrm. It's impossible to call jquery.redirect.min.js.
Comments
jquery.redirect.min.js
. Perhaps this jQuery plugin can be removed/deprecated?