Commit Graph
320 Commits
Author SHA1 Message Date
Belle Aerni 64d60e254a Apply discount credits to account balance (#1312) 2023-06-12 06:29:09 +02:00
Belle Aerni b95f92554e Fix logical error in Servicedownloadable module (#1311)
* Fix logical error in Servicedownloadable module

* Fix the tests now
2023-06-12 06:28:36 +02:00
Belle Aerni 56a64fefdd Prevent checkouts with disabled products (#1308) 2023-06-12 06:28:00 +02:00
Belle Aerni 748d93e112 Prevent upgrade requests for invalid upgrades (#1310) 2023-06-11 19:33:20 -07:00
Jaap Marcus 8946f2c4f1 fix/do-not-translate-product_title (#1291)
return __trans(':product_title', [':product_title' => $product->title]);

is the same as 

 return $product->title);

And prevent users from making mistakes
2023-06-08 02:30:39 -07:00
Belle Aerni ddb1a48e7f Fix issues with updating clients (#1288)
* Fix issues with updating clients

* Remove accidentally duplicated line
2023-06-08 02:30:29 -07:00
FOSSBilling BotandFOSSBilling Bot 46b6d34a12 Update CKEditor and Related Dependencies (#1296)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-06-07 05:59:55 -07:00
FOSSBilling BotandFOSSBilling Bot 5f9a7497f5 Update CKEditor and Related Dependencies (#1290)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-06-02 14:47:48 +02:00
Adam Daley 3a37470e30 Improve Central Alerts Error Handling (#1271)
Improve Central Alerts error handling to prevent failure when remote system unavailable and from other potential system errors. Resolves #1270.
2023-05-30 16:46:32 -07:00
Adam Daley 0e5109a0a5 Refactor System Updater (#1252)
* Refactor System Updater

Refactor Box/Update to clean things up, merge related functionality, improve error checking, and move to FOSSBilling namespace.

Also refactor foss-update.php into core class, `UpdatePatcher`.

* Refactor file system actions to use Symfony Filesystem

Refactor file system actions to use Symfony Filesystem component, and declare all used resources at start of files rather than duplicating throughout.
2023-05-26 15:30:39 +01:00
FOSSBilling BotandFOSSBilling Bot 43874cab1e Update CKEditor and Related Dependencies (#1258)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-05-23 18:58:27 +01:00
FOSSBilling BotandFOSSBilling Bot bf15567cd4 Update CKEditor and Related Dependencies (#1254)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-05-23 14:14:10 +03:00
Belle Aerni 62f6feaef7 Minor improvements to the ticket view (#1251)
* Minor improvements to the ticket view

* Also make those only one table body

Makes the stripes more consistent and imo looks better this way
2023-05-20 14:20:50 +01:00
Adam Daley 8708d9d895 Fix error with PHPUnit tests (#1217)
Fix error with PHPUnit tests introduced by changes to `FOSSBilling\Validate` class.
2023-05-08 14:06:09 -07:00
Yağızhan d909d77f7e -Unnecessary whitespace in the class headers (#1219) 2023-05-07 13:24:29 -07:00
Yağızhan 412e4a9fbd Standardized the class headers (#1212) 2023-05-06 13:06:17 +01:00
Adam Daley e54569d2cd Introduce namespaces and strict typing for FOSSBilling library classes (#1206) 2023-05-04 01:02:06 +01:00
YağızhanandAdam Daley 4928ebf932 Implemented Monolog (#1155)
* Implemented Monolog

* Doesn't need to look for BB_DEBUG. It won't be logged on prod anyway.

* Doesn't need to be an array

* -Box_LogStream

* Reverted squash

* Fixed a duplicate

* Type hinting

* This got lost in a merge commit

* Kind of distracted today. Good thing squash and merge exists.

* Cleaning

* Rebased composer.json & lockfile

* Enabled the check again

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-05-02 09:32:40 +01:00
Belle Aerni 9e8d196ebb Prevent float to int conversion warning (#1204)
In recent versions of PHP, converting from a float to an int causes deprecation warnings. This PR cleans up a situation I came across where that was happing.
2023-05-02 00:46:04 +02:00
Yağızhan 950e4dccef Type hinting the DI methods and variables (#1201) 2023-05-01 21:01:35 +03:00
Belle Aerni b3f7e155c3 Fix product order not respecting configured priority (#1195) 2023-05-01 06:03:49 -07:00
Yağızhan 884e66aa4b Removed getSettingsRoutes & hasSettingsRoutes (#1196) 2023-05-01 13:27:39 +03:00
Adam Daley 053f22a8bb Remove Box DI class in favour of native dependencies (#1193) 2023-04-30 08:47:52 +01:00
Belle AerniandAdam Daley e3d6bc9ad9 Introduce a cspell workflow (#1192)
* Introduce a cspell workflow

* Update cspell.yml

* Update cspell.yml

* Why is it seemingly ignoring the config?

* Waiit a min

* Fixed a bunch of spelling mistakes

* And set it back to incremental mode

* That is actually supposed to be spelled wrong..

Because BoxBilling :)

* Capitalization

* I swear I fixed this as well

* Update cspell.json

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-04-30 00:05:25 -07:00
YağızhanandAdam Daley 0392fa8c44 Central Alerts System (#1143)
* +Central Alerts System

* Added a link to the pull request

* Bugfix

* Refactored to use symfony/cache

* Reverted the database patch

* Update foss-update.php

* Reverted the table structure

* Restore src/install/sql/structure.sql

* Fixed the HTTP client

* Restore src/foss-update.php

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-04-29 13:07:51 -07:00
Yağızhan 03dc677304 Fix for SEF-enabled instances (#1189) 2023-04-29 12:54:09 -07:00
Belle Aerni fbb3478ebb Fix Orderbutton JS error (#1186) 2023-04-29 13:45:15 +01:00
Yağızhan ef7e060525 Implemented symfony/cache (#1184) 2023-04-29 14:38:53 +03:00
Belle Aerni d2e1a6434e A few small fixes (#1185) 2023-04-29 10:43:29 +02:00
Adam Daley e047cd86d9 Fix links to client emails (#1178)
Update Client module template to fix links to emails sent.
2023-04-28 09:17:24 +02:00
Adam Daley 3ec5462c2b Update System update message to link to updater (#1175)
* Update System update message to link to updater

Update the System module to provide a link to the updater in the update available message. Also update admin template to permit passing arbitrary HTML (such as links) in system messages.

* Improve system message handling with optional URL

Update System module message handling, and admin template, to better handle an optional URL for each message.
2023-04-28 01:32:35 +01:00
Adam Daley d4e4207d83 Update locations with extension manager naming (#1169)
Update remaining locations with new `extension_manager` naming.
2023-04-26 02:46:56 +02:00
Adam Daley a3764ea435 Update Product promotion handling to fix various bugs (#1167)
Update the Product service promotion handling to fix various errors. Resolves #1055.
2023-04-25 15:51:07 -07:00
Belle Aerni c5c85d7e97 Fix the MassMailer error (#1166)
* Fix the MassMailer error

* Shh. There was no extra space here
2023-04-25 21:17:43 +02:00
Adam Daley e01c601d6b Fix SQL error on cancelling invoice (#1162)
* Fix SQL error on cancelling invoice

Update Invoice service to check for empty string when setting `gateway_id` to fix SQL error.

* Update Invoice `gateway_id` check

Update Invoice `gateway_id` check to simplify by just checking for `empty()`.
2023-04-25 11:29:51 -07:00
Adam Daley 04dd00259b Update Currency service to check for no API key (#1165)
Update the Currency service to check if Currencylayer API key null to prevent undefined array key error.
2023-04-25 11:28:49 -07:00
Adam Daley 93d76996a3 Fix owndomain TLD handling to include period (#1163)
Fix handling of owndomain TLDs to always include the leading period (.), as is required.
2023-04-25 06:08:15 +02:00
Adam Daley 4a4b9dbf64 Update DirectAdmin server Manager with various fixes (#1161)
Update DirectAdmin server manager to fix username generation, password updating, and some minor other improvements.
2023-04-25 06:06:13 +02:00
Adam Daley 795d59b752 Fix error on client creation when no group selected (#1164)
Fix SQL error when creating a new client with no group selected by checking `group_id` for an empty string.
2023-04-25 06:04:24 +02:00
Adam Daley 67fd972efd Repace DI http-client with direct calls to symfomy/http-client (#1153) 2023-04-22 22:29:42 -07:00
YağızhanandAdam Daley 63d5847da2 New ExtensionDirectory class (#1141)
* Caught a typo

* New ExtensionDirectory class

* Tests

* Tests and error handling

* Stuff

* Literally the same outcome anyway. Will write this in the future.

* Removed tests for a function that does nothing

* "stable" -> "release"

* Fix misnamed exception errors

* Update class name to ExtensionManager

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-04-22 23:45:24 +01:00
Yağızhan 191233ff86 Renamed Box_Requirements and Box_Version (#1146)
* Renamed Box_Requirements and Box_Version

* Fixed the reference in the GitHub workflow
2023-04-22 18:55:48 +02:00
Yağızhan a406876cb7 Minor PHPDoc update (#1145)
* Dropped Box_FileCacheException

* Minor PHPDoc update
2023-04-22 17:40:11 +01:00
Belle Aerni 0c822244d7 Ensure the next invoice # is interpreted as an int (#1139) 2023-04-22 09:31:39 -07:00
Yağızhan 98b8a804ab Minor changes to the extension directory templates (#1130) 2023-04-22 14:24:52 +03:00
Adam Daley 69193e402f Remove Box/Zip in favour of library (#1123)
Remove custom Box/Zip class in favour of nelexa/zip library.
2023-04-22 07:21:34 +02:00
Yağızhan 57444aa0c7 A little overhaul for the SEO module (#1030) 2023-04-21 09:57:02 -07:00
Adam Daley ca67aeb44f Refactor request handling to use native functionality (#1122)
Refactor request handling to remove custom library/Box/Request class where possible and instead use native PHP functionality.
2023-04-21 15:07:59 +02:00
Belle Aerni 3c0ef5b4da Remove a few more useless classes (#1129)
* Remove a few more useless classes

* Fix a small typo

* Fix that test

Unless I am missing something, this must have never worked correctly.
2023-04-21 02:35:21 -07:00
Belle Aerni b96caa2cd8 Remove the FTP layer (#1128) 2023-04-20 12:27:10 +02:00