From ecda8f9173d106e33f94e6b6130e4d429635fb39 Mon Sep 17 00:00:00 2001 From: James Staub Date: Wed, 24 Jul 2024 17:33:33 -0500 Subject: [PATCH] Increase web builder custom form email to size https://ticket.bywatersolutions.com/SelfService/Display.html?id=132417 --- code/web/release_notes/24.08.00.MD | 3 +++ .../web/sys/DBMaintenance/version_updates/24.08.00.php | 10 ++++++++++ code/web/sys/WebBuilder/CustomForm.php | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/code/web/release_notes/24.08.00.MD b/code/web/release_notes/24.08.00.MD index ec0132ff48..d0dca82165 100644 --- a/code/web/release_notes/24.08.00.MD +++ b/code/web/release_notes/24.08.00.MD @@ -88,6 +88,9 @@ To generate the passkey file, the following command should be run (as root): ### Reports - Nashville-specific: Circulation Holds Report now includes item-level holds (*JStaub*) +### Web Builder +- Increase the Custom Form email recipient character limit. (Ticket 132417) (*JStaub*) + ### Other Updates - Bad Words: stop using cache for bad words. (Ticket 134567) (*JStaub*) diff --git a/code/web/sys/DBMaintenance/version_updates/24.08.00.php b/code/web/sys/DBMaintenance/version_updates/24.08.00.php index a1be88bc7f..6061b179f1 100644 --- a/code/web/sys/DBMaintenance/version_updates/24.08.00.php +++ b/code/web/sys/DBMaintenance/version_updates/24.08.00.php @@ -90,6 +90,16 @@ function getUpdates24_08_00(): array { //pedro - PTFS-Europe + //James Staub - Nashville Public Library + 'web_builder_custom_form_increase_email' => [ + 'title' => 'Increase Web Builder Custom Form "Email Results To" field character limit.', + 'description' => 'Increase Web Builder Custom Form "Email Results To" field character limit.', + 'continueOnError' => true, + 'sql' => [ + "ALTER TABLE web_builder_custom_form MODIFY COLUMN emailResultsTo VARCHAR(150)", + ] + ], //web_builder_custom_form_increase_email + //other ]; diff --git a/code/web/sys/WebBuilder/CustomForm.php b/code/web/sys/WebBuilder/CustomForm.php index 07434a69f2..9bcfbbd5bc 100644 --- a/code/web/sys/WebBuilder/CustomForm.php +++ b/code/web/sys/WebBuilder/CustomForm.php @@ -92,7 +92,7 @@ static function getObjectStructure($context = ''): array { 'label' => 'Email Results To (separate multiple addresses with semi-colons)', 'description' => 'An email address to send submission results to', 'size' => '40', - 'maxLength' => 100, + 'maxLength' => 150, ], 'includeIntroductoryTextInEmail' => [ 'property' => 'includeIntroductoryTextInEmail',