[Bps-public-commit] rt-extension-rest2 03/03: Skip empty messages from custom field updates
sunnavy
sunnavy at bestpractical.com
Mon Jul 19 18:18:51 UTC 2021
This is an automated email from the git hooks/post-receive script.
sunnavy pushed a commit to branch master
in repository rt-extension-rest2.
commit 2bb232d2aa882fdeb440c02fa1b332fdfeb015be
Author: sunnavy <sunnavy at bestpractical.com>
AuthorDate: Tue Jul 20 02:04:43 2021 +0800
Skip empty messages from custom field updates
It happened if you try to set a custom field to the current value. In
that case, RT::Record::AddCustomFieldValue simply returns correspoding
ObjectCustomFieldValue id to indicate success(it's already done) and no
messages will be returned.
---
lib/RT/Extension/REST2/Util.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/RT/Extension/REST2/Util.pm b/lib/RT/Extension/REST2/Util.pm
index f6d8861..59e9e8c 100644
--- a/lib/RT/Extension/REST2/Util.pm
+++ b/lib/RT/Extension/REST2/Util.pm
@@ -324,7 +324,7 @@ sub update_custom_fields {
Value => $val,
%args,
);
- push @results, $msg;
+ push @results, $msg // ();
}
else {
my %count;
--
To stop receiving notification emails like this one, please contact
sysadmin at bestpractical.com.
More information about the Bps-public-commit
mailing list