-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
dev/core#1651 and dev/core#1637 - Inline editing not working on admin screens and other js packages issues #16780
Conversation
(Standard links)
|
@demeritcowboy if I apply this PR and #16779 I get failures on inline editing (Financial Types) as well as adding images in the traditional mailer. This PR seems to change the URL to With just #16779 it works fine |
You would only apply one PR. This is an alternate to 16779 - I think this is better, but either one, alone, work. |
Or maybe on wordpress the /. does something? (in the first changed line) |
It should not. I see I applied both thinking we needed to fix i10n.js I'll try with just this PR |
Weird. I was sure I tested it. I might have done it on master and maybe different there. Thanks. |
closing in favour of #16779 |
Cool. I was curious - I must have had some caching or something. So this is in master:
So it's possible to make it work but could look at doing that in master. |
@demeritcowboy Yup, that's what I see too. Short version: IMHO, it's a flaw in Long version: I've filed it as a separate issue https://lab.civicrm.org/dev/core/issues/1653 |
@@ -13,7 +13,8 @@ | |||
// Config settings | |||
CRM.config.userFramework = {$config->userFramework|@json_encode}; | |||
CRM.config.resourceBase = {$config->userFrameworkResourceURL|@json_encode}; | |||
CRM.config.packagesBase = {capture assign=packagesBase}{crmResURL expr='[civicrm.packages]/.'}{/capture}{$packagesBase|@json_encode}; | |||
CRM.config.packagesBase = {capture assign=packagesBase}{crmResURL expr='[civicrm.packages]'}{/capture}{$packagesBase|@json_encode}; | |||
CRM.config.packagesBase = CRM.config.packagesBase.replace(/\/+$/, '') + '/'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stylistically, I like this patch better than #16779, but yeah - as you found, the [civicrm.packages]
doesn't evaluate as expected.
Since the output before was expected to end in a trailing slash, I can't help thinking that this might have been a one-character patch - just changing /.
to /
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's unfortunate I had some local issue/operator error that made it seem like it worked at first. I think for the regression though at this point it was more about not making everyone test/review things again on all cms's.
Alternate to #16779