Jump to content

Product module configuration field is readonly


Recommended Posts

Hey everyone!

We have been offering a provisioning module for Nextcloud for quite some time now but we recently received an unusual bug report. In the module's configuration screen in the product settings, see below, the Quota field is marked as readonly. Obviously, we have not configured this anywhere in the module or in any of the hooks included.


We asked the customer to manually remove the readonly tag to then set the desired quota and save the product. The customer did this successfully and was able to save the quota this way. So there is no invalid configuration in the module, nor is there a hook that actually prevents updating this value. Nevertheless, this is obviously not a desirable situation, as it requires the customer to remove the readonly tag for every update.

Our module is running at many customers and also in our own WHMCS instance. No sooner have I heard this from our other customers and we ourselves are not affected by this. Therefore, it seems obvious to me that there is a hook from another integration that should prevent packageconfigoption[4] from updating for another module but unfortunately does so as well for our module.

Do you guys know of a hook that can do this? I was already looking at AdminProductConfigFields myself but couldn't get much further information from the Developer Documentation. If no hook can take care of this, what could cause the bug?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated