-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into acceptance-reminder-subject
- Loading branch information
Showing
1,086 changed files
with
13,279 additions
and
5,425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
php-version: | ||
- "8.1.1" | ||
- "8.3" | ||
|
||
name: PHP ${{ matrix.php-version }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:22.04 | ||
FROM ubuntu:24.04 | ||
LABEL maintainer="Brady Wetherington <[email protected]>" | ||
|
||
# No need to add `apt-get clean` here, reference: | ||
|
@@ -14,16 +14,16 @@ RUN export DEBIAN_FRONTEND=noninteractive; \ | |
apt-utils \ | ||
apache2 \ | ||
apache2-bin \ | ||
libapache2-mod-php8.1 \ | ||
php8.1-curl \ | ||
php8.1-ldap \ | ||
php8.1-mysql \ | ||
php8.1-gd \ | ||
php8.1-xml \ | ||
php8.1-mbstring \ | ||
php8.1-zip \ | ||
php8.1-bcmath \ | ||
php8.1-redis \ | ||
libapache2-mod-php8.3 \ | ||
php8.3-curl \ | ||
php8.3-ldap \ | ||
php8.3-mysql \ | ||
php8.3-gd \ | ||
php8.3-xml \ | ||
php8.3-mbstring \ | ||
php8.3-zip \ | ||
php8.3-bcmath \ | ||
php8.3-redis \ | ||
php-memcached \ | ||
patch \ | ||
curl \ | ||
|
@@ -41,7 +41,7 @@ libc-dev \ | |
libldap-common \ | ||
pkg-config \ | ||
libmcrypt-dev \ | ||
php8.1-dev \ | ||
php8.3-dev \ | ||
ca-certificates \ | ||
unzip \ | ||
dnsutils \ | ||
|
@@ -53,16 +53,16 @@ RUN php go-pear.phar | |
|
||
RUN pecl install mcrypt | ||
|
||
RUN bash -c "echo extension=/usr/lib/php/20210902/mcrypt.so > /etc/php/8.1/mods-available/mcrypt.ini" | ||
RUN bash -c "echo extension=/usr/lib/php/20210902/mcrypt.so > /etc/php/8.3/mods-available/mcrypt.ini" | ||
|
||
RUN phpenmod mcrypt | ||
RUN phpenmod gd | ||
RUN phpenmod bcmath | ||
|
||
RUN sed -i 's/variables_order = .*/variables_order = "EGPCS"/' /etc/php/8.1/apache2/php.ini | ||
RUN sed -i 's/variables_order = .*/variables_order = "EGPCS"/' /etc/php/8.1/cli/php.ini | ||
RUN sed -i 's/variables_order = .*/variables_order = "EGPCS"/' /etc/php/8.3/apache2/php.ini | ||
RUN sed -i 's/variables_order = .*/variables_order = "EGPCS"/' /etc/php/8.3/cli/php.ini | ||
|
||
RUN useradd -m --uid 1000 --gid 50 docker | ||
RUN useradd -m --uid 10000 --gid 50 docker | ||
|
||
RUN echo export APACHE_RUN_USER=docker >> /etc/apache2/envvars | ||
RUN echo export APACHE_RUN_GROUP=staff >> /etc/apache2/envvars | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,16 +95,10 @@ public function store(ImageUploadRequest $request) : RedirectResponse | |
* @author [A. Gianotto] [<[email protected]>] | ||
* @param int $accessoryId | ||
*/ | ||
public function edit($accessoryId = null) : View | RedirectResponse | ||
public function edit(Accessory $accessory) : View | RedirectResponse | ||
{ | ||
|
||
if ($item = Accessory::find($accessoryId)) { | ||
$this->authorize($item); | ||
return view('accessories.edit', compact('item'))->with('category_type', 'accessory'); | ||
} | ||
|
||
return redirect()->route('accessories.index')->with('error', trans('admin/accessories/message.does_not_exist')); | ||
|
||
$this->authorize('update', Accessory::class); | ||
return view('accessories.edit')->with('item', $accessory)->with('category_type', 'accessory'); | ||
} | ||
|
||
/** | ||
|
@@ -114,19 +108,12 @@ public function edit($accessoryId = null) : View | RedirectResponse | |
* @param int $accessoryId | ||
* @since [v6.0] | ||
*/ | ||
public function getClone($accessoryId = null) : View | RedirectResponse | ||
public function getClone(Accessory $accessory) : View | RedirectResponse | ||
{ | ||
|
||
$this->authorize('create', Accessory::class); | ||
|
||
// Check if the asset exists | ||
if (is_null($accessory_to_clone = Accessory::find($accessoryId))) { | ||
// Redirect to the asset management page | ||
return redirect()->route('accessories.index') | ||
->with('error', trans('admin/accessories/message.does_not_exist', ['id' => $accessoryId])); | ||
} | ||
|
||
$accessory = clone $accessory_to_clone; | ||
$accessory = clone $accessory; | ||
$accessory->id = null; | ||
$accessory->location_id = null; | ||
|
||
|
@@ -142,9 +129,9 @@ public function getClone($accessoryId = null) : View | RedirectResponse | |
* @param ImageUploadRequest $request | ||
* @param int $accessoryId | ||
*/ | ||
public function update(ImageUploadRequest $request, $accessoryId = null) : RedirectResponse | ||
public function update(ImageUploadRequest $request, Accessory $accessory) : RedirectResponse | ||
{ | ||
if ($accessory = Accessory::withCount('checkouts as checkouts_count')->find($accessoryId)) { | ||
if ($accessory = Accessory::withCount('checkouts as checkouts_count')->find($accessory->id)) { | ||
|
||
$this->authorize($accessory); | ||
|
||
|
@@ -231,14 +218,10 @@ public function destroy($accessoryId) : RedirectResponse | |
* @see AccessoriesController::getDataView() method that generates the JSON response | ||
* @since [v1.0] | ||
*/ | ||
public function show($accessoryID = null) : View | RedirectResponse | ||
public function show(Accessory $accessory) : View | RedirectResponse | ||
{ | ||
$accessory = Accessory::withCount('checkouts as checkouts_count')->find($accessoryID); | ||
$accessory = Accessory::withCount('checkouts as checkouts_count')->find($accessory->id); | ||
$this->authorize('view', $accessory); | ||
if (isset($accessory->id)) { | ||
return view('accessories.view', compact('accessory')); | ||
} | ||
|
||
return redirect()->route('accessories.index')->with('error', trans('admin/accessories/message.does_not_exist', ['id' => $accessoryID])); | ||
return view('accessories.view', compact('accessory')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.