From e577b77ba08d6a955a1713c38a2761b645139891 Mon Sep 17 00:00:00 2001 From: Roger Rehnelt Date: Thu, 1 Oct 2026 21:36:33 +0200 Subject: Produktverwaltung: keine PHP-Meldungen beim Anlegen Leere Textfelder gingen als null an den Editor; die leere Produktliste las eine nicht gesetzte Variable. Co-Authored-By: Claude Opus 5.5 --- .../mods/mod_produktattribute/produkt_addedit_content.phtml | 2 +- views/produkt/addedit_texte.phtml | 12 ++++++------ views/produkt/index.phtml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'views') diff --git a/views/mods/mod_produktattribute/produkt_addedit_content.phtml b/views/mods/mod_produktattribute/produkt_addedit_content.phtml index 6d9a062..d507e5c 100644 --- a/views/mods/mod_produktattribute/produkt_addedit_content.phtml +++ b/views/mods/mod_produktattribute/produkt_addedit_content.phtml @@ -16,7 +16,7 @@

-
+
diff --git a/views/produkt/addedit_texte.phtml b/views/produkt/addedit_texte.phtml index 145cd37..6b62604 100644 --- a/views/produkt/addedit_texte.phtml +++ b/views/produkt/addedit_texte.phtml @@ -37,7 +37,7 @@ add_filter('tiny_mce_before_init', 'wpsg_formatTinyMCE'); add_filter('admin_head', 'wpsg_ShowTinyMCE'); - wp_editor(@$this->view['data']['beschreibung'], 'beschreibung'); + wp_editor((string)($this->view['data']['beschreibung']??''), 'beschreibung'); ?> @@ -51,7 +51,7 @@ add_filter('tiny_mce_before_init', 'wpsg_formatTinyMCE'); add_filter('admin_head', 'wpsg_ShowTinyMCE'); - wp_editor(@$this->view['data']['longdescription'], 'longdescription'); + wp_editor((string)($this->view['data']['longdescription']??''), 'longdescription'); ?> @@ -64,7 +64,7 @@ add_filter('tiny_mce_before_init', 'wpsg_formatTinyMCE'); add_filter('admin_head', 'wpsg_ShowTinyMCE'); - wp_editor(@$this->view['data']['longdescription_addon'], 'longdescription_addon'); + wp_editor((string)($this->view['data']['longdescription_addon']??''), 'longdescription_addon'); ?> @@ -77,7 +77,7 @@ add_filter('tiny_mce_before_init', 'wpsg_formatTinyMCE'); add_filter('admin_head', 'wpsg_ShowTinyMCE'); - wp_editor(@$this->view['data']['productfeatures'], 'productfeatures'); + wp_editor((string)($this->view['data']['productfeatures']??''), 'productfeatures'); ?> @@ -90,7 +90,7 @@ add_filter('tiny_mce_before_init', 'wpsg_formatTinyMCE'); add_filter('admin_head', 'wpsg_ShowTinyMCE'); - wp_editor(@$this->view['data']['moreinfos'], 'moreinfos'); + wp_editor((string)($this->view['data']['moreinfos']??''), 'moreinfos'); ?> @@ -103,7 +103,7 @@ add_filter('tiny_mce_before_init', 'wpsg_formatTinyMCE'); add_filter('admin_head', 'wpsg_ShowTinyMCE'); - wp_editor(@$this->view['data']['moreinfos2'], 'moreinfos2'); + wp_editor((string)($this->view['data']['moreinfos2']??''), 'moreinfos2'); ?> diff --git a/views/produkt/index.phtml b/views/produkt/index.phtml index fa434f4..a1d6137 100644 --- a/views/produkt/index.phtml +++ b/views/produkt/index.phtml @@ -501,7 +501,7 @@ jQuery('#wpsg_mod_productvariations_dialog').modal(); jQuery.ajax( { - url: 'wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_stock&edit_id=&noheader=1&wpsg_cmd=getVariInfo', + url: 'wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_stock&edit_id=&noheader=1&wpsg_cmd=getVariInfo', data: { 'subaction': 'admin_show', 'product_id': product_id -- cgit v1.2.3