소스 검색

Update user_edit.php

FusionPBX 6 년 전
부모
커밋
4180ffbb0d
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      core/users/user_edit.php

+ 3 - 3
core/users/user_edit.php

@@ -660,12 +660,12 @@
 	if ($unsaved) {
 	if ($unsaved) {
 		echo "<span style='color: #b00;'>".$text['message-unsaved_changes']." <i class='glyphicon glyphicon-warning-sign' style='margin-right: 15px;'></i></span>";
 		echo "<span style='color: #b00;'>".$text['message-unsaved_changes']." <i class='glyphicon glyphicon-warning-sign' style='margin-right: 15px;'></i></span>";
 	}
 	}
-	if (permission_exists('ticket_add') || permission_exists('ticket_edit')) {
-		echo "	<input type='button' class='btn' style='margin-right: 10px;' onclick=\"window.location='/app/tickets/tickets.php'\" value='".$text['button-tickets']."'>";
-	}
 	if (permission_exists('user_add') || permission_exists('user_edit')) {
 	if (permission_exists('user_add') || permission_exists('user_edit')) {
 		echo "	<input type='button' class='btn' style='margin-right: 10px;' onclick=\"window.location='users.php'\" value='".$text['button-back']."'>";
 		echo "	<input type='button' class='btn' style='margin-right: 10px;' onclick=\"window.location='users.php'\" value='".$text['button-back']."'>";
 	}
 	}
+	if (permission_exists('ticket_add') || permission_exists('ticket_edit')) {
+		echo "	<input type='button' class='btn' style='margin-right: 3px;' onclick=\"window.location='/app/tickets/tickets.php?user_uuid=".escape($user_uuid)."'\" value='".$text['button-tickets']."'>";
+	}
 	echo "	<input type='submit' class='btn' value='".$text['button-save']."'>";
 	echo "	<input type='submit' class='btn' value='".$text['button-save']."'>";
 	echo "</div>\n";
 	echo "</div>\n";
 	echo "<b>".$text['header-user_edit']."</b><br />\n";
 	echo "<b>".$text['header-user_edit']."</b><br />\n";