From 39d98837a366b17e6d8d4d25724ce6ee74f47cc5 Mon Sep 17 00:00:00 2001 From: Josh Crawford Date: Tue, 19 Sep 2023 19:54:09 +1000 Subject: [PATCH 1/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 09f9636..610b05e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Field Manager plugin for Craft CMS - + Field Manager is a Craft CMS plugin to help make it easy to manage your fields and field groups. From 21743d0c349c690c5b3300ed4242f4e2f35b8b81 Mon Sep 17 00:00:00 2001 From: The Web Puzzlers Date: Fri, 29 Sep 2023 06:47:14 +0100 Subject: [PATCH 2/5] Fixed entry types audit --- src/templates/audit/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/templates/audit/index.html b/src/templates/audit/index.html index a90ff60..795acfa 100644 --- a/src/templates/audit/index.html +++ b/src/templates/audit/index.html @@ -85,7 +85,10 @@

{{ elementGroup }}

- {% for field in tab.layout.customFields %} + {% set elements = tab.elements|filter(e => e is instance of('craft\\fieldlayoutelements\\CustomField')) %} + + {% for element in elements %} + {% set field = element.field %} From 040b568a19341cb57d6f680df62f3230c772afd5 Mon Sep 17 00:00:00 2001 From: Josh Crawford Date: Wed, 25 Oct 2023 11:30:22 +1100 Subject: [PATCH 3/5] Fixed entry types audit --- src/templates/audit/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/templates/audit/index.html b/src/templates/audit/index.html index a90ff60..730aab5 100644 --- a/src/templates/audit/index.html +++ b/src/templates/audit/index.html @@ -85,7 +85,11 @@

{{ elementGroup }}

- {% for field in tab.layout.customFields %} + {% set elements = tab.elements|filter(e => e is instance of('craft\\fieldlayoutelements\\CustomField')) %} + + {% for element in elements %} + {% set field = element.field %} + From f0fbe4afc4d1897633f9b079bb59e3ecad07d70e Mon Sep 17 00:00:00 2001 From: Josh Crawford Date: Wed, 25 Oct 2023 11:31:04 +1100 Subject: [PATCH 4/5] version 3.0.8 --- CHANGELOG.md | 6 ++++++ composer.json | 4 ++-- config.codekit3 | 44 +++++++++++++++++++++++++++++--------------- 3 files changed, 37 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac14c47..24c67b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 3.0.8 - 2023-10-25 + +### Fixed +- Fix an error when viewing the audit screen. +- Fix lack of validation checks when creating or editing fields. + ## 3.0.7 - 2023-07-11 ### Added diff --git a/composer.json b/composer.json index 50a6cf0..dac9f9f 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "verbb/field-manager", "description": "Manage your fields and field groups with ease.", "type": "craft-plugin", - "version": "3.0.7", + "version": "3.0.8", "keywords": [ "craft", "cms", @@ -31,7 +31,7 @@ }, "autoload": { "psr-4": { - "verbb\\fieldmanager\\": "src/" + "verbb\\fieldmanager\\": "src/" } }, "extra": { diff --git a/config.codekit3 b/config.codekit3 index 17165b1..77da5b8 100644 --- a/config.codekit3 +++ b/config.codekit3 @@ -7,7 +7,7 @@ "uuidString" : "ECE3F09A-2816-43C6-9715-3F4A30BD28C5" } ], - "creatorBuild" : "34365", + "creatorBuild" : "34518", "files" : { "\/.github\/FUNDING.yml" : { "cB" : 0, @@ -371,7 +371,7 @@ "oF" : 0, "oS" : 3, "pg" : 0, - "sct" : 1 + "sct" : 0 }, "\/src\/services" : { "ft" : 65536, @@ -935,6 +935,10 @@ "active" : 0, "optionString" : "'always', {exceptAfterSingleLine: false}" }, + "logical-assignment-operators" : { + "active" : 0, + "optionString" : "'always', {'enforceForIfStatements': false}" + }, "max-classes-per-file" : { "active" : 0, "optionString" : "1" @@ -1095,6 +1099,9 @@ "no-empty-pattern" : { "active" : 1 }, + "no-empty-static-block" : { + "active" : 0 + }, "no-eq-null" : { "active" : 0 }, @@ -1126,7 +1133,8 @@ "active" : 1 }, "no-fallthrough" : { - "active" : 1 + "active" : 1, + "optionString" : "{'allowEmptyCase': false}" }, "no-floating-decimal" : { "active" : 0 @@ -1234,6 +1242,9 @@ "no-new-func" : { "active" : 0 }, + "no-new-native-nonconstructor" : { + "active" : 0 + }, "no-new-object" : { "active" : 0 }, @@ -1288,7 +1299,8 @@ "optionString" : "'event', 'fdescribe'" }, "no-restricted-imports" : { - "active" : 0 + "active" : 0, + "optionString" : "" }, "no-restricted-properties" : { "active" : 0, @@ -1302,9 +1314,6 @@ "active" : 0, "optionString" : "'except-parens'" }, - "no-return-await" : { - "active" : 0 - }, "no-script-url" : { "active" : 0 }, @@ -1855,7 +1864,7 @@ "autoOutputPathReplace1" : "sass", "autoOutputPathReplace2" : "css", "autoOutputPathStyle" : 2, - "compilerType" : 1, + "compilerType" : 0, "cssoStyle" : 0, "decimalPrecision" : 10, "emitCharset" : 1, @@ -1916,11 +1925,12 @@ "createDeclarationFile" : 0, "jsxMode" : 0, "minifierStyle" : 0, + "moduleDetectionType" : 0, "moduleResolutionType" : 0, "moduleType" : 2, "removeComments" : 0, "sourceMapStyle" : 0, - "targetECMAVersion" : 0 + "targetECMAVersion" : 2018 }, "languageDefaultsUserDefined" : [ @@ -1972,10 +1982,14 @@ "ENVIRONMENT:::$NODE_ENV" ], "rollupTreeshakingEnabled" : 1, + "rollupTreeshakingModuleSideEffects" : 1, "skippedFoldersString" : "log, _logs, logs, _cache, cache, \/storage\/framework\/sessions, node_modules, \/src\/models, \/src\/tasks, \/src\/elements, \/src\/helpers, \/src\/migrations, \/src\/data, \/src\/templates, \/src\/records, \/src\/controllers, \/src\/assetbundles, \/src\/base, \/src\/fields, \/src\/services, \/src\/variables", "sourceFolderName" : "source", "susyVersion" : 3, + "tsAllowArbitraryExtensions" : 0, + "tsAllowImportingTSExtensions" : 0, "tsAllowSyntheticDefaultImports" : 0, + "tsAllowUMDGlobalAccess" : 0, "tsAllowUnreachableCode" : 0, "tsAllowUnusedLabels" : 0, "tsAlwaysStrict" : 0, @@ -1984,36 +1998,36 @@ "tsEmitDecoratorMetadata" : 0, "tsESModuleInterop" : 0, "tsExactOptionalPropertyTypes" : 0, + "tsExperimentalDecorators" : 0, "tsForceConsistentCasingInFileNames" : 0, "tsImportHelpers" : 0, "tsIsolatedModules" : 0, "tsJSXFactory" : "React.createElement", - "tsKeyofStringsOnly" : 0, "tsNoEmitHelpers" : 0, "tsNoFallthroughCasesInSwitch" : 0, "tsNoImplicitAny" : 0, "tsNoImplicitOverride" : 0, "tsNoImplicitReturns" : 0, "tsNoImplicitThis" : 0, - "tsNoImplicitUseStrict" : 0, "tsNoLib" : 0, "tsNoPropertyAccessFromIndexSignature" : 0, "tsNoResolve" : 0, - "tsNoStrictGenericChecks" : 0, "tsNoUncheckedIndexAccess" : 0, "tsNoUnusedLocals" : 0, "tsNoUnusedParameters" : 0, "tsPreserveConstEnums" : 0, "tsPreserveSymlinks" : 0, "tsResolveJsonModule" : 0, + "tsSkipDefaultLibCheck" : 0, "tsSkipLibCheck" : 0, + "tsStrictBindCallApply" : 0, "tsStrictFunctionTypes" : 0, "tsStrictNullChecks" : 0, "tsStrictPropertyInitialization" : 0, "tsStripInternal" : 0, - "tsSuppressExcessPropertyErrors" : 0, - "tsSuppressImplicitAnyIndexErrors" : 0, + "tsUseDefineForClassFields" : 0, "tsUseUnknownInCatchVariables" : 0, + "tsVerbatimModuleSyntax" : 0, "uglifyDefinesString" : "", "uglifyFlags2" : { "arguments" : { @@ -2046,7 +2060,7 @@ }, "comments" : { "active" : 0, - "flagValue" : -1 + "flagValue" : 1 }, "comparisons" : { "active" : 1, From 4a080e248e2a611abd777d943870bce39dcba9d1 Mon Sep 17 00:00:00 2001 From: nstCactus Date: Sun, 19 Nov 2023 14:06:10 +0100 Subject: [PATCH 5/5] fix: import success flash message --- src/controllers/BaseController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/BaseController.php b/src/controllers/BaseController.php index 38b4f09..e2a66d9 100644 --- a/src/controllers/BaseController.php +++ b/src/controllers/BaseController.php @@ -334,7 +334,8 @@ public function actionImport(): ?Response $importErrors = FieldManager::$plugin->getImport()->import($fieldsToImport); if (!$importErrors) { - Craft::$app->getSession()->setNotice(Craft::t('field-manager', 'Imported successfully.')); + Craft::$app->getSession()->setSuccess(Craft::t('field-manager', 'Imported successfully.')); + return null; } else { Craft::$app->getSession()->setError(Craft::t('field-manager', 'Error importing fields.'));