- Issue created by @mlncn
- Status changed to Needs review
almost 2 years ago 10:49pm 27 February 2023 - π§πͺBelgium swentel
Oh, funky :)
The default value should be 0 by default - that's at least in settings.yml, and activitypub_update_8017() should have added it, not sure what or why goes wrong here.
Also, looking at the #min value of that field, it's set to 0, which is probably a bad idea too.
Patch attached which does this:
- set #min to 1
- remove the #required key in the form element
- add #required via states
- add validate function in case #states fails for some reason.
- switches the default in settings.yml to 1 (not going to write an update function for this one) The last submitted patch, 4: 3344773-4.patch, failed testing. View results β
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- Status changed to Needs work
almost 2 years ago 10:55pm 27 February 2023 - π§πͺBelgium swentel
Ugh, seconds after I tested the patch, I noticed that in case the default value would still be 0, the form wouldn't submit either. Annoying, maybe I'll just keep that at #min => 0; in that case the PHP validation message will kick in as well. Just need a better message at that point than the one I've put in the patch.
Also, the tests fails because remove activities was now 1 by default :)
(great I have tests for that, didn't even remember that) - First commit to issue fork.
- Status changed to Needs review
almost 2 years ago 7:04pm 3 March 2023 - π§πͺBelgium swentel
Back to 0 it is, suggestions welcome for a better error message.
-
swentel β
committed cfef1671 on 1.0.x
Issue #3344773 by swentel, mlncn, MegaKeegMan: ActivityPub Settings...
-
swentel β
committed cfef1671 on 1.0.x
- Status changed to Fixed
almost 2 years ago 12:07pm 11 March 2023 Automatically closed - issue fixed for 2 weeks with no activity.