From facfaf6479f8978e979215ca37c46ac0c7fbc08e Mon Sep 17 00:00:00 2001 From: melaniekung Date: Thu, 29 Aug 2024 08:57:59 -0700 Subject: [PATCH] Fix 'Lang and script note' update in RAD. (#1846) --- plugins/sfRadPlugin/lib/sfRadPlugin.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/sfRadPlugin/lib/sfRadPlugin.class.php b/plugins/sfRadPlugin/lib/sfRadPlugin.class.php index 6aa05df0e3..630c799211 100644 --- a/plugins/sfRadPlugin/lib/sfRadPlugin.class.php +++ b/plugins/sfRadPlugin/lib/sfRadPlugin.class.php @@ -110,6 +110,13 @@ public function setProperty($name, $value) if (0 == strlen($value)) { // Delete note if it's available if (!$missingNote) { + // Update deleted note on duplication + if (!isset($value)) { + $note->content = $value; + + break; + } + $note->delete(); }