Help me to find the delete action of custom fields, I can't find it.
url: admin.php?custom-user-fields/
I found the url custom-user-fields/<field_id>/delete and class points to XF:UserField
However when I check XF UserField controller, I can't find delete action. Where is it?
Ok, thanks @Jeremy P. It would be interesting if you could address this behavior, in dev mode display some error message and in prod mode avoid getting stuck.
I did other tests here and I understood what happened, I'll try to explain.
In development mode, when uninstalling the add-on, I noticed that the files were not deleted. So I configured it to delete the directories when uninstalling the add-on (in setup.php), and when trying to reinstall it...
Yes, layout, command and hashes, everything ok. And exactly as you said, the installation completes, but the files (js/css) are not placed anywhere, no log errors, no messages.
I have no idea how to give an example, that's a simple installation task. Should this behavior maybe related to...
@Jeremy P can you help me with this issue?
I've got the zip with all js/css files, but do not deploy them on installation.
I did exactly what you mentioned here, but the problem is not with the zip, but with the installation.
I've added some directories to my add-on, however is not being deployed on installation.
Am I missing something?
build.json
{
"additional_files": [
"js/My/Addon",
"styles/My/Addon",
"data/My/Addon/Images"
]
}
I need to run a query on user downgrade, so I set class extension XF\Cron\CleanUp ~ My\Addon\XF\Cron\CleanUp
The function runUserDowngrade runs under XF class not what I've set.
namespace My\Addon\XF\Cron;
class CleanUp extends XFCP_CleanUp {
public static function runUserDowngrade()...