Skip to content

Commit 517e923

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents d427d9e + a0b8483 commit 517e923

File tree

3 files changed

+44
-21
lines changed

3 files changed

+44
-21
lines changed

README.md

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![snipe-it-by-grok](https://github.com/snipe/snipe-it/assets/197404/b515673b-c7c8-4d9a-80f5-9fa58829a602)
22

3-
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/snipe-it/localized.svg)](https://crowdin.com/project/snipe-it) [![Docker Pulls](https://img.shields.io/docker/pulls/snipe/snipe-it.svg)](https://hub.docker.com/r/snipe/snipe-it/) [![Twitter Follow](https://img.shields.io/twitter/follow/snipeitapp.svg?style=social)](https://twitter.com/snipeitapp) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/553ce52037fc43ea99149785afcfe641)](https://app.codacy.com/gh/snipe/snipe-it/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![Tests](https://github.com/snipe/snipe-it/actions/workflows/tests.yml/badge.svg)](https://github.com/snipe/snipe-it/actions/workflows/tests.yml)
3+
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/snipe-it/localized.svg)](https://crowdin.com/project/snipe-it) [![Docker Pulls](https://img.shields.io/docker/pulls/snipe/snipe-it.svg)](https://hub.docker.com/r/snipe/snipe-it/) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/553ce52037fc43ea99149785afcfe641)](https://app.codacy.com/gh/snipe/snipe-it/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![Tests](https://github.com/snipe/snipe-it/actions/workflows/tests.yml/badge.svg)](https://github.com/snipe/snipe-it/actions/workflows/tests.yml)
44
[![All Contributors](https://img.shields.io/badge/all_contributors-331-orange.svg?style=flat-square)](#contributing) [![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.gg/yZFtShAcKk)
55

66
## Snipe-IT - Open Source Asset Management System
@@ -14,6 +14,21 @@ Snipe-IT is actively developed and we [release quite frequently](https://github.
1414
> [!TIP]
1515
> __This is web-based software__. This means there is no executable file (aka no .exe files), and it must be run on a web server and accessed through a web browser. It runs on any Mac OSX, any flavor of Linux, as well as Windows, and we have a [Docker image](https://snipe-it.readme.io/docs/docker) available if that's what you're into.
1616
17+
-----
18+
19+
### Table of Contents
20+
* [Installation](#installation)
21+
* [User's Manual](#user-s-manual)
22+
* [Bug Reports & Feature Requests](#bug-reports---feature-requests)
23+
* [Security](#security)
24+
* [Upgrading](#upgrading)
25+
* [Announcement List](#announcement-list)
26+
* [Translations!](#translations-)
27+
* [Libraries, Modules & Related Projects](#libraries--modules---related-projects)
28+
* [Join the Community!](#join-the-community-)
29+
* [Contributing](#contributing)
30+
31+
1732
-----
1833

1934
### Installation
@@ -22,8 +37,6 @@ For instructions on installing and configuring Snipe-IT on your server, check ou
2237

2338
If you're having trouble with the installation, please check the [Common Issues](https://snipe-it.readme.io/docs/common-issues) and [Getting Help](https://snipe-it.readme.io/docs/getting-help) documentation, and search this repository's open *and* closed issues for help.
2439

25-
<!-- [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) -->
26-
2740
-----
2841
### User's Manual
2942
For help using Snipe-IT, check out the [user's manual](https://snipe-it.readme.io/docs/overview).
@@ -35,9 +48,16 @@ Feel free to check out the [GitHub Issues for this project](https://github.com/s
3548

3649
> [!IMPORTANT]
3750
> **PLEASE see the [Getting Help Guidelines](https://snipe-it.readme.io/docs/getting-help) and [Common Issues](https://snipe-it.readme.io/docs/common-issues) before opening a ticket, and be sure to complete all of the questions in the Github Issue template to help us to help you as quickly as possible.**
38-
>
51+
52+
-----
53+
54+
### Security
55+
56+
> [!IMPORTANT]
57+
> **To report a security vulnerability, please email [email protected] instead of using the issue tracker.**
3958
-----
4059

60+
4161
### Upgrading
4262

4363
Please see the [upgrading documentation](https://snipe-it.readme.io/docs/upgrading) for instructions on upgrading Snipe-IT.
@@ -82,23 +102,26 @@ Since the release of the JSON REST API, several third-party developers have been
82102

83103
-----
84104

85-
### Contributing
105+
### Join the Community!
86106

87-
Please refrain from submitting issues or pull requests generated by fully-automated tools. Maintainers reserve the right, at their sole discretion, to close such submissions and to block any account responsible for them.
107+
- **[Join our Discord](https://discord.gg/yZFtShAcKk)!** It’s full of great people. We even wrote about it [here](https://grokstar.dev/culture/2024/06/the-unlikely-rise-of-discord-as-a-support-channel/)!
108+
- **Follow us on Bluesky** at [@snipeitapp.com](https://bsky.app/profile/snipeitapp.com)
109+
- **Follow us on Mastodon** at [hachyderm.io/@grokability](https://hachyderm.io/@grokability)
110+
- **Follow our blog** at [Grokstar.Dev](https://grokstar.dev)
111+
- **Subscribe here** on Github for notifications about new releases. (We recommend selecting "Releases" only for mosrt users - this repo can get noisy.)
88112

89-
Ideally, contributions should follow from a human-to-human discussion in the form of an issue.
113+
-----
90114

91-
Please see the complete documentation on [contributing and developing for Snipe-IT](https://snipe-it.readme.io/docs/contributing-overview).
115+
### Contributing
92116

93-
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
117+
**Please refrain from submitting issues or pull requests generated by fully-automated tools. Maintainers reserve the right, at their sole discretion, to close such submissions and to block any account responsible for them.**
94118

95-
The ERD is available [online here](https://drawsql.app/templates/snipe-it).
119+
Contributions should follow from a human-to-human discussion in the form of an issue for the best chances of being merged into the core project. (Sometimes we might already be working on that feature, sometimes we've decided against )
96120

97-
[Here is a list](CONTRIBUTORS.md) of the wonderful people that have contributed to the Snipe-IT.
121+
Please see the complete documentation on [contributing and developing for Snipe-IT](https://snipe-it.readme.io/docs/contributing-overview).
98122

99-
-----
123+
This project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
100124

101-
### Security
125+
The ERD is available [online here](https://drawsql.app/templates/snipe-it).
102126

103-
> [!IMPORTANT]
104-
> **To report a security vulnerability, please email [email protected] instead of using the issue tracker.**
127+
Be sure to check out all of the [amazing people](CONTRIBUTORS.md) that have contributed to Snipe-IT over the years!

app/Http/Controllers/Api/ReportsController.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,24 @@ public function index(Request $request) : JsonResponse | array
4545
}
4646

4747
if ($request->filled('action_type')) {
48-
$actionlogs = $actionlogs->where('action_type', '=', $request->input('action_type'))->orderBy('created_at', 'desc');
48+
$actionlogs = $actionlogs->where('action_type', '=', $request->input('action_type'));
4949
}
5050

5151
if ($request->filled('created_by')) {
5252
$actionlogs = $actionlogs->where('created_by', '=', $request->input('created_by'));
5353
}
5454

5555
if ($request->filled('action_source')) {
56-
$actionlogs = $actionlogs->where('action_source', '=', $request->input('action_source'))->orderBy('created_at', 'desc');
56+
$actionlogs = $actionlogs->where('action_source', '=', $request->input('action_source'));
5757
}
5858

5959
if ($request->filled('remote_ip')) {
60-
$actionlogs = $actionlogs->where('remote_ip', '=', $request->input('remote_ip'))->orderBy('created_at', 'desc');
60+
$actionlogs = $actionlogs->where('remote_ip', '=', $request->input('remote_ip'));
6161
}
6262

6363

6464
if ($request->filled('uploads')) {
65-
$actionlogs = $actionlogs->whereNotNull('filename')->orderBy('created_at', 'desc');
65+
$actionlogs = $actionlogs->whereNotNull('filename');
6666
}
6767

6868
$allowed_columns = [
@@ -94,7 +94,7 @@ public function index(Request $request) : JsonResponse | array
9494
$actionlogs->OrderByCreatedBy($order);
9595
break;
9696
default:
97-
$sort = in_array($request->input('sort'), $allowed_columns) ? e($request->input('sort')) : 'created_at';
97+
$sort = in_array($request->input('sort'), $allowed_columns) ? e($request->input('sort')) : 'action_logs.created_at';
9898
$actionlogs = $actionlogs->orderBy($sort, $order);
9999
break;
100100
}

resources/views/layouts/default.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@
872872
<div class="1hidden-xs pull-left">
873873
<div class="pull-left" >
874874
<a target="_blank" href="https://snipeitapp.com" rel="noopener">Snipe-IT</a> is open source software, made with <x-icon type="heart" style="color: #a94442; font-size: 10px" />
875-
<span class="sr-only">love</span> by <a href="https://twitter.com/snipeitapp" rel="noopener">@snipeitapp</a>.
875+
<span class="sr-only">love</span> by <a href="https://bsky.app/profile/snipeitapp.com" rel="noopener">@snipeitapp</a>.
876876
</div>
877877
<div class="pull-right">
878878
@if ($snipeSettings->version_footer!='off')

0 commit comments

Comments
 (0)