Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a quota set to the default at 1 site per user, but when I try to edit the site node I get the following error:
has reached their site quota of 1. No new sites can be added unless an existing site is deleted or the site quota is increased.
I think this is because hosting_site_validate() checks the quota whether the node is being edited or not. This patch changes that to execute the quota check only on new nodes.
Comment | File | Size | Author |
---|---|---|---|
#1 | hosting_1003666.patch | 694 bytes | hadsie |
Comments
Comment #1
hadsie CreditAttribution: hadsie commentedComment #2
hadsie CreditAttribution: hadsie commentedp.s. I realize that this patch isn't against git, I'm just not totally sure how to change my workflow to use the hosting git repo in my dev environment
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedMakes sense and patch works!
Thanks!