This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Crm 5.37.1 #194
Open
akosgarai
wants to merge
51
commits into
compucorp:master
Choose a base branch
from
akosgarai:crm-5.37.1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Crm 5.37.1 #194
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The visibility of this variable is public in the parent class. The overwitten visibility caused the following errors: PHP Fatal error: Access level to CRM_Admin_Form_Resource:: must be public (as in class CRM_Admin_Form)
It bumps the underscore version from 1.5.0 to 1.13.1
The backbone stack is deprecated in the civicrm. In the 5.37.1 version the libs seems to be missing (404 in browser console), so that the Booking frontend application is broken. Versions: - Backbone: 1.4.0 has been added (developer version). I don't know which version was used in the civi. - Marionette: 4.1.2 has been added (latest version). I think an older (<3) version was used in the civi. - Modelbinder: 1.1.1 has been added (latest version). I don't know which version was used in the civi.
It is included from the civi backbone packages directory, so that is could be missing also.
Also use the LONG_NAME variable instead of the hardcoded module name
In the browser console the following error appeared: Uncaught TypeError: Cannot read property 'Model' of undefined Solution: If the Backbone is undefined, fallback to the window.Backbone.
The Backbone.Marionette is undefined in the current lib. But Marionette is defined, so it could be used instead.
As the Marionette.Module is deprecated and has been removed from the codebase, the utils.js triggered js error. The utils.js function has been removed and the add-sub-resource app has been extended with the removed logic.
Console errors are not visible on the screen. Changes: - entites.js module elimination. The content has been added to the app.js. - addInitializer has been removed, the onStart function has to be used instead - move ResourceTableView from views to app as the modules are not supported
modules are deprecated and has been removed from the codebase
Use CRM.$ instead of $, and CRM._ instead of _
On the page header regions they were loaded later than the template finder function excution. The missing template caused empty content.
Also fix the form selector
As the app.js is getting too long, some of the objects could be moved to separate files. It helps me understanding the current issues.
As both modal trigger events the handler supposed to be the parent class
To be honest i don't know that it works well or not. Couldn't catch the render dialog event
It is handled with a function in common.js that is already loaded on the form
The current upgrader processes the xml files that has this suffix
Based on the solution that this fork applied: https://github.com/mjwconsult/civibooking
civix generate:entity-boilerplate
to resolve Unknown db error during extension install
mferraznw
approved these changes
Feb 2, 2023
mferraznw
approved these changes
Feb 2, 2023
These changes should now be in: https://lab.civicrm.org/extensions/booking/-/tree/main (from merging the mjw branch, I did a few spot checks and looks OK) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It seems this extensions is not working well with the latest CiviCRM versions. I tested it with 5.37.1 and it seems broken.
The logs are filled with php errors caused by protected _id variable in php form classes. The Backbone libs are missing, due to the deprecation in the CRM.
Changes in this PR:
I still found 2 issues.
I'm still investigating both. Besides of those, this version seems to be working for me, but I'm not sure. I found this extension a couple of weeks ago and i don't know it well.