Skip to content

Instantly share code, notes, and snippets.

@nelson-ph
nelson-ph / drupal-9.views-ajax-exposed-form-support-button-submit.patch
Created April 26, 2021 09:52
Drupal 9 - Ajax exposed form - support button submit
Index: modules/views/js/ajax_view.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/modules/views/js/ajax_view.js b/modules/views/js/ajax_view.js
--- a/modules/views/js/ajax_view.js (date 1619430609347)
+++ b/modules/views/js/ajax_view.js (date 1619430609347)
@@ -104,7 +104,7 @@
var _this = this;
@nelson-ph
nelson-ph / simplesaml.ignore-port-change.patch
Last active April 14, 2021 16:48
Simple saml - review port issue
Index: lib/SimpleSAML/Utils/HTTP.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/lib/SimpleSAML/Utils/HTTP.php b/lib/SimpleSAML/Utils/HTTP.php
--- a/lib/SimpleSAML/Utils/HTTP.php (date 1618418764860)
+++ b/lib/SimpleSAML/Utils/HTTP.php (date 1618418764860)
@@ -119,6 +119,10 @@
// Take care of edge-case where SERVER_PORT is an integer
@nelson-ph
nelson-ph / drupal.core-views-ajaxview-pager-init-review.patch
Created April 8, 2021 10:42
Drupal.views.ajaxView is not initializing pagers in nested views
Index: modules/views/js/ajax_view.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/modules/views/js/ajax_view.js b/modules/views/js/ajax_view.js
--- a/modules/views/js/ajax_view.js (date 1617878403608)
+++ b/modules/views/js/ajax_view.js (date 1617878403608)
@@ -11,8 +11,11 @@
Drupal.behaviors.ViewsAjaxView.attach = function (context, settings) {
@nelson-ph
nelson-ph / drupal.search_api_swiftype.fix-nested-filter-warning.patch
Created April 7, 2021 13:16
Drupal - search_api_swiftype - fix nested filter warning
Index: src/Plugin/search_api/backend/SwiftypeBackend.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Plugin/search_api/backend/SwiftypeBackend.php b/src/Plugin/search_api/backend/SwiftypeBackend.php
--- a/src/Plugin/search_api/backend/SwiftypeBackend.php (date 1617801290700)
+++ b/src/Plugin/search_api/backend/SwiftypeBackend.php (date 1617801290700)
@@ -941,8 +941,10 @@
if (empty($filters[$document_type])) {
@nelson-ph
nelson-ph / drupal.search_api_swiftype.fix-date-value-formating.patch
Created March 26, 2021 17:03
Drupal - search_api_swiftype - fix date format value
Index: src/Plugin/search_api/backend/SwiftypeBackend.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Plugin/search_api/backend/SwiftypeBackend.php b/src/Plugin/search_api/backend/SwiftypeBackend.php
--- a/src/Plugin/search_api/backend/SwiftypeBackend.php (date 1616778060111)
+++ b/src/Plugin/search_api/backend/SwiftypeBackend.php (date 1616778060111)
@@ -960,7 +960,7 @@
$value = [$value];
@nelson-ph
nelson-ph / drupal.facets.fix-access-array-offset-notice.patch
Created March 25, 2021 18:44
Drupal 8 - facets - fix access array offset notice
Index: src/Plugin/facets/query_type/SearchApiString.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Plugin/facets/query_type/SearchApiString.php b/src/Plugin/facets/query_type/SearchApiString.php
--- a/src/Plugin/facets/query_type/SearchApiString.php (date 1613742596000)
+++ b/src/Plugin/facets/query_type/SearchApiString.php (date 1613742596000)
@@ -65,10 +65,10 @@
foreach ($this->results as $result) {
@nelson-ph
nelson-ph / drupal.search_api_swiftype.fix_boolean_indexation.patch
Created March 11, 2021 16:34
Drupal 8 - Swiftype - Review boolean indexation
Index: src/SwiftypeDocument/SwiftypeDocument.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/SwiftypeDocument/SwiftypeDocument.php b/src/SwiftypeDocument/SwiftypeDocument.php
--- a/src/SwiftypeDocument/SwiftypeDocument.php (date 1615480287826)
+++ b/src/SwiftypeDocument/SwiftypeDocument.php (date 1615480287826)
@@ -47,6 +47,13 @@
$value = [$value];
@nelson-ph
nelson-ph / drupal.yaml_content-support-set-uuid-property.patch
Created March 5, 2021 16:08
Drupal 8 - Yaml content support set uuid
Index: src/ContentLoader/ContentLoader.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/ContentLoader/ContentLoader.php b/src/ContentLoader/ContentLoader.php
--- a/src/ContentLoader/ContentLoader.php (date 1614960368449)
+++ b/src/ContentLoader/ContentLoader.php (date 1614960368449)
@@ -365,7 +365,7 @@
@nelson-ph
nelson-ph / drupal.shs.review-term-lineage-storing.patch
Created March 4, 2021 15:15
Drupal - shs - review term lineage storing
Index: src/Plugin/Field/FieldWidget/OptionsShsWidget.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Plugin/Field/FieldWidget/OptionsShsWidget.php b/src/Plugin/Field/FieldWidget/OptionsShsWidget.php
--- a/src/Plugin/Field/FieldWidget/OptionsShsWidget.php (date 1614870737531)
+++ b/src/Plugin/Field/FieldWidget/OptionsShsWidget.php (date 1614870737531)
@@ -382,8 +382,9 @@
$tids[] = $value['target_id'];
@nelson-ph
nelson-ph / drupal.twig_field_value.support_entity_field_extra_token.patch
Last active March 2, 2021 20:47
Drupal 8/9 - twig field value - support entity field extra token
Index: src/Twig/Extension/FieldValueExtension.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Twig/Extension/FieldValueExtension.php b/src/Twig/Extension/FieldValueExtension.php
--- a/src/Twig/Extension/FieldValueExtension.php (date 1614715108572)
+++ b/src/Twig/Extension/FieldValueExtension.php (date 1614715108572)
@@ -161,7 +161,7 @@
*/