-
-
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
(WIP) CRM-14097 - Scheduled reminders UI problems #7877
Conversation
Change the label of is_active field. Added new field for "Send Email" Hide Email fields if "Send Email" is unchecked Added required field validation for email subject Moved "Record activity for automated email" to email section
Change the label of is_active field. Added new field for "Send Email" Hide Email fields if "Send Email" is unchecked Added required field validation for email subject Moved "Record activity for automated email" to email section
Can one of the admins verify this patch? |
|
||
//CRM-14097 - When un-checking the "send email" box, the email fields do not get hidden | ||
cj(function ( $ ) { | ||
$(document).ready(function(){ |
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.
These two wrappers are not necessary - this code is already wrapped by CRM.$(function($) {
on line 178.
jenkins, ok to test |
Jenkins, retest this please |
@rajithnishanth82 I'm going through a number of open PRs that may be considered for 4.7.8, and to be considered, this will need the tests to be passing. It looks like you've got a bad indent on line 285 of ScheduleReminders.php (see the test results). If you can resolve that and the comments that @colemanw made, and commit in the next couple of days with the tests passing, we'll be able to consider it for merging this month. |
I found 3 errors related to the "send email" field 1) The toggle of the "Email screen" fieldset doesn't work properlyWhen first loading the modal the toggle logic is inverted, the second time the modal is opened it doesn't work at all, the third time it's inverted, and so on Providing a flag to the $('body').on('change', '.crm-scheduleReminder-form-block-active #send_email', function () {
$('#email.crm-collapsible').toggle(this.checked);
}); There is still the question of what the initial status would be for the checkbox. If unchecked, you also need to hide by default the fieldset <fieldset id="email" class="crm-collapsible" style="display: none;"> 2) The Subject field is still mandatory even when send_email is falseIf you deselect the send email checkbox, the form will fail validation on the "subject" field, even if its section was removed as it wasn't of interest for the user (note that in the gif the bug described in issue no.1 is present) 3) send_email value is not savedThe send_email value will always be false even for reminders where it was set to true at the moment of submitting the form |
Given the issues reported above, I'll edit the subject-line to say "WIP" (work-in-progress). When they're resolved, please remove "WIP". |
Heh @rajithnishanth82 as Release Manager this month, I'm trying to recruit people to help pare down the backlog of almost 100 PRs, some going back to last summer. I'm wondering if you would be able to help QA another PR if I got someone to QA this PR? |
I'm closing this PR as I believe #7924 supercedes it -please re-open if I am wrong |
Can one of the admins verify this patch? |
Change the label of is_active field. Added new field for "Send Email"
Hide Email fields if "Send Email" is unchecked
Added required field validation for email subject
Moved "Record activity for automated email" to email section