mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 12:18:43 +09:00
Add Validation for birthday, gender and document type parameters in profile update (#2992)
* Add Validation * update test * add migration * Update src/library/FOSSBilling/UpdatePatcher.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/modules/Profile/ClientValidator.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/modules/Profile/ClientValidator.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * update * Update src/modules/Profile/ClientValidator.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update `last_patch` setting value to 46 Incremented the 'last_patch' value in the settings table from 45 to 46 to reflect the latest patch version. --------- Co-authored-by: blackholered <blackholered@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: enigmaticious <enigmaticious@users.noreply.github.com> Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
This commit is contained in:
7 files changed
+113
-19
No files matched your search
@@ -221,7 +221,7 @@ CREATE TABLE `client` (
|
||||
`type` varchar(100) DEFAULT NULL,
|
||||
`first_name` varchar(100) DEFAULT NULL,
|
||||
`last_name` varchar(100) DEFAULT NULL,
|
||||
`gender` varchar(20) DEFAULT NULL,
|
||||
`gender` ENUM('male', 'female', 'nonbinary', 'other') DEFAULT NULL,
|
||||
`birthday` date DEFAULT NULL,
|
||||
`phone_cc` varchar(10) DEFAULT NULL,
|
||||
`phone` varchar(100) DEFAULT NULL,
|
||||
@@ -234,7 +234,7 @@ CREATE TABLE `client` (
|
||||
`state` varchar(100) DEFAULT NULL,
|
||||
`postcode` varchar(100) DEFAULT NULL,
|
||||
`country` varchar(100) DEFAULT NULL,
|
||||
`document_type` varchar(100) DEFAULT NULL,
|
||||
`document_type` ENUM('passport') DEFAULT NULL,
|
||||
`document_nr` varchar(20) DEFAULT NULL,
|
||||
`notes` text,
|
||||
`currency` varchar(10) DEFAULT NULL,
|
||||
|
||||
Reference in new issue
Block a user