Closed (fixed)
Project:
Scheduler
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2020 at 12:42 UTC
Updated:
29 Nov 2020 at 16:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nils.destoop commentedFollowing patch fixes the issue.
Comment #3
jonathan1055 commentedHi nils.destoop,
Thanks for reporting this and for the patch. Did you hide the field with a hook_form_alter() or via a UI ? Can you share precisely how you achieved it.
Also we need an additional test within
SchedulerDefaultTimeTestto demonstrate the problem, and then show that it is fixed by your patch. Can you write that? If not, I can.Jonathan
Comment #4
nils.destoop commentedIdd, the form element was altered in a form alter:
For te test, we will probably need a separate test module that adds the form alter.
Comment #6
jonathan1055 commentedHere's a patch which adds a new test to cover this problem. I added a new
scheduler_extrastest module which has the hook_form_node_form_alter() to hide the time elements as described in #4. So this patch should fail.Comment #8
jonathan1055 commentedAs intended, we get the error
The text "Hidden Time Elements jcQibHiq is scheduled to be published Monday, November 16, 2020 - 06:30 and unpublished Tuesday, November 17, 2020 - 06:30" was not found anywhere in the text of the current page.. Here's a patch with the new test and the fixed widget as per patch #2Comment #9
jonathan1055 commentedCancelled as the one critical line was commented out. Correct patch is #9
Comment #11
jonathan1055 commentedThanks @nils.destoop for reporting this and for providing the code fix. I used the new Merge Request function, and let the commit message take its default value. I now see that this did not include you as an author, sorry about that.
I think that when this issue is marked as fixed, you should get an 'issue' credit, even though I cannot now change the git commit to give you a 'commit' credit.