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

Regression: no longer able to see attendance days when creating/editing a Group #971

Closed
jefft opened this issue Oct 24, 2023 · 9 comments
Closed

Comments

@jefft
Copy link
Contributor

jefft commented Oct 24, 2023

When creating a Group, there ought to be an 'Attendance Recording Days' section (assuming the 'Attendance' feature is enabled in Admin -> System Configuration):

image

The 'Attendance Recording Days' section has disappeared in 2.34.0:

image

This makes it impossible to create a new attendable group, or edit the days of attendance for existing groups.

@jefft
Copy link
Contributor Author

jefft commented Oct 24, 2023

The 'Attendance Recording Days' section is being hidden by Javascript, in this line:

https://github.com/tbar0970/jethro-pmm/blame/78fe5920b81c95a71055a3ecd3bfdf19292ef1ca/resources/js/jethro.js#L483

It was added in commit 68bf2b9 when addressing #834.

A very ugly workaround is to disable Javascript just before loading the page. In chrome, hit F12, ctrl+shift+p and search for 'Javascript' to disable it -- then reload the Add / Edit Group page, and the missing checkboxes will be present.

@tbar0970
Copy link
Owner

Thanks for reporting. That JS is only meant to affect the edit-congregation form. Will fix.

jefft pushed a commit to jefft/jethro-pmm that referenced this issue Dec 13, 2023
@tim-pearce
Copy link
Contributor

I applied the fix manually to my system and it doesn't seem to have made a difference?

@tim-pearce
Copy link
Contributor

Is there some sort of 'compile javascript' step? I applied the code for truncated email addresses too and it's not working either.

@tim-pearce
Copy link
Contributor

Ok, I found it. There is a js file for each version of Jethro - but how does it get constructed?

@tbar0970
Copy link
Owner

tbar0970 commented Feb 7, 2024

It gets constructed via a packaging script that isn't published.
Best approach for you is to run as a DEV system which doens't use the compiled JS, by deleting include/version.txt

@tbar0970
Copy link
Owner

tbar0970 commented Feb 7, 2024

I applied the fix manually to my system and it doesn't seem to have made a difference?

You did see that this fix is included in the release https://github.com/tbar0970/jethro-pmm/releases/tag/2.34.1 ?

@tim-pearce
Copy link
Contributor

I am on 2.34.0. I am usually a bit slow to upgrade because I have a number of changes (most of which are sitting as outstanding pull requests).
Oddly I just went to Admin->Upgrade and it says 'Your system is up to date on version v2.34.0'!?

@tbar0970
Copy link
Owner

Oddly I just went to Admin->Upgrade and it says 'Your system is up to date on version v2.34.0'!?

Ah thanks for the heads up. The "v" was missing from the latest tag name. Now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants