Set of Port Name (description) fixed to assume OK dialog response

This commit is contained in:
Oliver Gorwits
2013-11-02 18:09:55 +00:00
parent 667715dd30
commit d0cd743006
3 changed files with 7 additions and 3 deletions

View File

@@ -22,9 +22,6 @@ ajax '/ajax/portcontrol' => require_role port_control => sub {
'c_power' => 'power',
);
send_error('No action/value', 400)
unless (param('action') or param('value'));
my $action = $action_map{ param('field') };
my $subaction = ($action =~ m/^(?:power|portcontrol)/
? (param('action') ."-other")