From b529aa4b3a7c06ce13a37bd6b6d489af0843d6f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0rfan=20DUMAN?= Date: Tue, 29 Oct 2024 02:19:55 +0300 Subject: [PATCH 1/2] fix helpBlock method for find extension rule --- resources/js/components/field-validation/Builder.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/components/field-validation/Builder.vue b/resources/js/components/field-validation/Builder.vue index 278b1100f2..a24bd642e7 100644 --- a/resources/js/components/field-validation/Builder.vue +++ b/resources/js/components/field-validation/Builder.vue @@ -176,7 +176,7 @@ export default { return false; } - let rule = _.chain(RULES) + let rule = _.chain([...RULES, ...Statamic.$config.get('extensionRules')]) .filter(rule => rule.value === this.selectedLaravelRule) .first() .value(); From 169c5c248259369fb365fa0933fb63d5239944e4 Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Tue, 29 Oct 2024 10:30:42 -0400 Subject: [PATCH 2/2] already a method for that --- resources/js/components/field-validation/Builder.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/components/field-validation/Builder.vue b/resources/js/components/field-validation/Builder.vue index a24bd642e7..f00632164f 100644 --- a/resources/js/components/field-validation/Builder.vue +++ b/resources/js/components/field-validation/Builder.vue @@ -176,7 +176,7 @@ export default { return false; } - let rule = _.chain([...RULES, ...Statamic.$config.get('extensionRules')]) + let rule = _.chain(this.allRules) .filter(rule => rule.value === this.selectedLaravelRule) .first() .value();