Culprit found, problem fixed, tests are green again.
May be we can imagine some kind of hybrid mode where we could select some entity types/bundles in the settings form and then only create per-bundle permissions corresponding to this selection of types/bundles.
That would definitely be an interesting feature to have.
Wondering if we shouldn't have a permission per bundle after seeing this issue: ๐ Create a admin page to define entities/bundles where access_unpublished should work Active
This looks like an easy fix.
Could you provide steps to reproduce the problem please?
MR 42 implements the new hook_access_unpublished_allowed_operations_alter hook.
Covered by a kernel test.
We could add a 'custom' entry in the options list and if the 'custom' entry is selected, display an input field allowing to enter a custom expiration value.
Thanks @generalredneck, we are using this module on at least two big sites:
Happy to give back to the community.
I think Drupal 10.1 minimum will be required before merging.
Some improvements and fixes.
A functional test has been added.
A test has been added to this issue's MR.
We still need a way to grant this new permission to existing roles; otherwise most users will lose access to the token-generation form.
Ready to implement whichever solution is deemed appropriate.
"None" was in the original patch, I would rather go with an empty string too.
I can change the hook to process all existing tokens.
Created a merge request with the accompanying kernel test.
And it will also be automatically available in the node edit form:
As you said in a previous post, the "settings_form" id seems a bit too generic.
Nice catch @generalredneck!
The warnings should have disappeared now.
Added an empty-headers test case to ensure no warnings are triggered.
In your screenshot my user wants to remove the unlimited option and add a 4 weeks option.
It's there already a way to do that?
Added a patch corresponding to the new MR 32. Tested successfully on Drupal 11.2.8.
I hadnโt planned to work on this module, but seeing that this major WSOD bug had been unresolved for nearly two years made me think some help might be needed.
Here is the message sent today to the current maintainers:
Hi,
We are using the "Access unpublished" module on some of our web sites.
I volunteer to maintain the module and pledge to work quickly on fixing the most urgent issues.
I have proposed a merge-request with functional tests to solve a major issue:
https://www.drupal.org/project/access_unpublished/issues/3421309 ๐ Unable to save 'access unpublished' setting form - TypeError: Drupal\Core\Render\Element::children(): Argument #1 ($elements) must be of type array, null given Active
You can check my profile here with all the modules I am currently maintaining:
https://www.drupal.org/u/mably โ
Here is the issue relative to my maintainership offer:
https://www.drupal.org/project/access_unpublished/issues/3559337 ๐ฌ Offering to maintain Access unpublished Active
Regards.
Frank
mably โ changed the visibility of the branch 3421309-unable-to-save to hidden.
Looks like the patch has already been merged.
Does anybody know why this hasn't rather been fixed on core side?
Closing as problem should be fixed in 3.x and fix can't be easily backported to 2.0.x without breaking BC.
Sadly you don't provide any information that could help solve your problem.
Please don't reopen this issue unless you can provide a reproducible scenario on a fresh Drupal instance.
Thanks for the review @gabriel.passarelli !
Let's merge this.
Related class have been removed in this issue's MR: ๐ Replace DomainListCheck with permissions in routing.yml Fixed .
A bunch of new functional tests have been added in issue โจ Add a text filter to generate the Table of Contents in the text Needs review .
I guess it could be done using a custom provider.
But I do not think it's the current default behavior for any of the existing providers.
@olivierg can you confirm that it works fine for you so I can publish a new release?
Thanks.
Added a few functional tests.
Can we have an RTBC please?
Hi @olivierg, is there any test account available I could use to test the new code?
Didn't succeed to get one on the Post CH website.
Thanks for your help.
Thanks @hfernandes for the review!
I updated the code based on your suggestions.
Feel free to RTBC if everything seems ok.
Hi @olivierg, thanks for your patch.
Could you create a merge request please?
Haven't been able to reproduce the problem locally. Closing.
Ok, node field ToC is displaying again ๐
But Node block configuration is lost.
Looks like it hasn't been tested at all...
Looks like the table of contents are not rendering anymore ๐
Will have a deeper look tomorrow.