From 44f7ab10773fdadd5d37e0e02d1b53f85598e460 Mon Sep 17 00:00:00 2001 From: Brian Canini <canini.16@osu.edu> Date: Wed, 13 Jan 2021 11:58:11 -0500 Subject: [PATCH] new patch - adding custom patch to multiple_fields_remove_button module to add ability to remove date range fields --- composer.json | 3 +++ composer.lock | 5 ++++- ...ple_fields_remove_button-daterange-addition.patch | 12 ++++++++++++ vendor/composer/installed.json | 3 +++ .../multiple_fields_remove_button/PATCHES.txt | 7 +++++++ .../multiple_fields_remove_button.module | 1 + 6 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 patches/multiple_fields_remove_button-daterange-addition.patch create mode 100644 web/modules/multiple_fields_remove_button/PATCHES.txt diff --git a/composer.json b/composer.json index 7e429471e3..f1e6d27d65 100644 --- a/composer.json +++ b/composer.json @@ -290,6 +290,9 @@ "2809699": "https://www.drupal.org/files/issues/2020-05-03/2809699-162-dynamic-block-titles.patch", "2950943": "https://www.drupal.org/files/issues/2020-05-21/2950943-40.patch" }, + "drupal/multiple_fields_remove_button": { + "Adding Date Range": "patches/multiple_fields_remove_button-daterange-addition.patch" + }, "drupal/social_media_links": { "Remove Google Plus": "patches/rm-googleplus.patch" }, diff --git a/composer.lock b/composer.lock index 0a1fab0b28..62e3c42761 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a38ef5c9575d3782158036e8e6afd6b5", + "content-hash": "5d5f9a310b1ba9a78bdeea9d9f10d611", "packages": [ { "name": "alchemy/zippy", @@ -6447,6 +6447,9 @@ "status": "not-covered", "message": "Alpha releases are not covered by Drupal security advisories." } + }, + "patches_applied": { + "Adding Date Range": "patches/multiple_fields_remove_button-daterange-addition.patch" } }, "notification-url": "https://packages.drupal.org/8/downloads", diff --git a/patches/multiple_fields_remove_button-daterange-addition.patch b/patches/multiple_fields_remove_button-daterange-addition.patch new file mode 100644 index 0000000000..fa54c813b0 --- /dev/null +++ b/patches/multiple_fields_remove_button-daterange-addition.patch @@ -0,0 +1,12 @@ +diff --git a/multiple_fields_remove_button.module b/multiple_fields_remove_button.module +index 8441489..558994d 100644 +--- a/multiple_fields_remove_button.module ++++ b/multiple_fields_remove_button.module +@@ -114,6 +114,7 @@ function multiple_fields_remove_button_field_widget_form_alter(&$element, FormSt + 'date_popup', + 'date_text', + 'datetime', ++ 'daterange', + 'decimal', + 'dynamic_entity_reference', + 'email', diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 6041a8df39..9bd9a9a89e 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -6644,6 +6644,9 @@ "status": "not-covered", "message": "Alpha releases are not covered by Drupal security advisories." } + }, + "patches_applied": { + "Adding Date Range": "patches/multiple_fields_remove_button-daterange-addition.patch" } }, "installation-source": "dist", diff --git a/web/modules/multiple_fields_remove_button/PATCHES.txt b/web/modules/multiple_fields_remove_button/PATCHES.txt new file mode 100644 index 0000000000..24e4c13bdf --- /dev/null +++ b/web/modules/multiple_fields_remove_button/PATCHES.txt @@ -0,0 +1,7 @@ +This file was automatically generated by Composer Patches (https://github.com/cweagans/composer-patches) +Patches applied to this directory: + +Adding Date Range +Source: patches/multiple_fields_remove_button-daterange-addition.patch + + diff --git a/web/modules/multiple_fields_remove_button/multiple_fields_remove_button.module b/web/modules/multiple_fields_remove_button/multiple_fields_remove_button.module index 8441489727..558994db41 100644 --- a/web/modules/multiple_fields_remove_button/multiple_fields_remove_button.module +++ b/web/modules/multiple_fields_remove_button/multiple_fields_remove_button.module @@ -114,6 +114,7 @@ function multiple_fields_remove_button_field_widget_form_alter(&$element, FormSt 'date_popup', 'date_text', 'datetime', + 'daterange', 'decimal', 'dynamic_entity_reference', 'email', -- GitLab