Adding event now goes to viewmachine, not machine list
This commit is contained in:
parent
ba84d2211b
commit
c042a53581
@ -109,7 +109,7 @@ switch ($VARS['action']) {
|
||||
$VARS['privatenotes']
|
||||
);
|
||||
|
||||
returnToSender("event_added", $VARS['machine']);
|
||||
returnToSender("event_added", $evt->getMachineID());
|
||||
case "editclient":
|
||||
$user = new User($_SESSION['uid']);
|
||||
if (!$user->hasPermission("MACHINEMANAGER_EDIT")) {
|
||||
|
@ -25,7 +25,7 @@ $form = new FormBuilder("Add Event", "fas fa-history", "action.php", "POST");
|
||||
$form->setID("editmachine");
|
||||
|
||||
$form->addHiddenInput("action", "addevent");
|
||||
$form->addHiddenInput("source", "machines");
|
||||
$form->addHiddenInput("source", "viewmachine");
|
||||
$form->addHiddenInput("machine", htmlspecialchars($_GET['id']));
|
||||
|
||||
$events = $database->select("event_types", ['eventid', 'eventname']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user