[Rt-commit] rt branch 5.0/cf-edit-refresh-category-selectpicker created. rt-5.0.2-56-g5271049c85
BPS Git Server
git at git.bestpractical.com
Mon Jan 10 14:48:45 UTC 2022
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".
The branch, 5.0/cf-edit-refresh-category-selectpicker has been created
at 5271049c85642abd74e03dd2e97c7f8e86815417 (commit)
- Log -----------------------------------------------------------------
commit 5271049c85642abd74e03dd2e97c7f8e86815417
Author: sunnavy <sunnavy at bestpractical.com>
Date: Mon Jan 10 22:31:32 2022 +0800
Refresh status for Category select box on custom field edit page
Otherwise the Category select for new added values wouldn't be shown in
"Values" widget and previous selected value would be wrongly shown in
"Add Values" widget.
diff --git a/share/html/Admin/Elements/AddCustomFieldValue b/share/html/Admin/Elements/AddCustomFieldValue
index d102f78d91..459fadf500 100644
--- a/share/html/Admin/Elements/AddCustomFieldValue
+++ b/share/html/Admin/Elements/AddCustomFieldValue
@@ -115,6 +115,7 @@ jQuery( function() {
jQuery('input[name=CustomField-<% $CustomField->id %>-Value-new-Name]').val('').focus(),
jQuery('input[name=CustomField-<% $CustomField->id %>-Value-new-Description]').val(''),
jQuery('[name=CustomField-<% $CustomField->id %>-Value-new-Category]').val('');
+ jQuery('form[name=AddCustomFieldValue] select.selectpicker, div.edit_custom_field_values select.selectpicker').selectpicker('refresh');
}
else {
alert(data.message);
-----------------------------------------------------------------------
hooks/post-receive
--
rt
More information about the rt-commit
mailing list