mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-18 05:28:16 -06:00
14550 fix event rule action type
This commit is contained in:
parent
96878cfca6
commit
12b291e968
@ -309,9 +309,11 @@ class EventRuleForm(NetBoxModelForm):
|
||||
|
||||
if self.instance.pk:
|
||||
scriptmodule_id = self.instance.action_object_id
|
||||
if self.instance.action_parameters:
|
||||
script_name = self.instance.action_parameters.get('script_name')
|
||||
self.fields['action_choice'].initial = f'{scriptmodule_id}:{script_name}'
|
||||
print(self.fields['action_choice'].initial)
|
||||
else:
|
||||
self.fields['action_choice'].inital = None
|
||||
|
||||
def init_webhook_choice(self):
|
||||
initial = None
|
||||
|
Loading…
Reference in New Issue
Block a user