feature_modify_alias isn't called when modifying alias

I updating nginx plugin for virtualmin for add support to domain aliases. Version is 3.84 gpl.

Plugin have virtual_feature.pl with functions: feature_setup_alias feature_delete_alias feature_modify_alias

When I create and delete aliases, they successfully called (feature_setup_alias, feature_delete_alias). But when I do the modification of alias (disable-enable this plugin into alias or modifying description), function feature_modify_alias isn't called, but called function feature_modify.

But this is not full virtualserver, this is only alias, and must be called function feature_modify_alias

Can you fix this problem?

Status: 
Closed (fixed)

Comments

Actually, it is behaving as designed - the feature_setup_alias function is called when an alias domain is added to the real domain for which your plugin is enabled. This rarely needs to be implemented by plugins.

The functions feature_setup , feature_modify and feature_delete are called for real and alias domains for which your feature is enabled. You can use the domain hash parameter to determined if it is an alias or not, by looking at the 'alias' key.

Thank's for the description! I understand how it must works now.