From f4be611c51473359e6d41780f0313c446079e9d3 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 09 Jun 2026 15:19:24 +0000
Subject: [PATCH] =Switched the /base/options.php to the same pattern as Site.php: a class based approached rather than a filter. Updated Meta.php to play along with the defined fields from there in Meta::forOptions. Had to change openingHoursSpecificationsTrait.php to not use the translater functions __('text','textdomain') for now, as we load before init.
---
assets/js/concise/TaxonomyCreator.js | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/assets/js/concise/TaxonomyCreator.js b/assets/js/concise/TaxonomyCreator.js
index 4a5d595..922c3a4 100644
--- a/assets/js/concise/TaxonomyCreator.js
+++ b/assets/js/concise/TaxonomyCreator.js
@@ -82,21 +82,22 @@
if (!data.name || data.name.length < 2) return false;
try {
const response = await this.createTerm(data);
-
+ let currentField = this.selector.currentField();
if (!response.success) {
// Term already exists - still add it
if (response.term && response.term.id) {
- this.selector.setMessage(true, `Using existing "${response.term.name}"`);
+ this.selector.setMessage(currentField,true, `Using existing "${response.term.name}"`);
return response.term;
}
// Other failure
- this.selector.setMessage(true, response.message || 'Creation failed', false);
+ this.selector.setMessage(currentField,true, response.message || 'Creation failed', false);
return false;
}
if (response.term?.pending) {
// Term requires approval
this.selector.setMessage(
+ currentField,
true,
`"${data.name}" submitted for approval`,
false
--
Gitblit v1.10.0