Merge remote-tracking branch 'origin/release/17.3' into dev

This commit is contained in:
Oliver Günther
2026-04-20 11:30:45 +02:00
3 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ class CustomActions::Actions::Base
end
def value_objects
values.map do |value|
values.filter_map do |value|
allowed_values.find { |v| v[:value] == value }
end
end
@@ -324,6 +324,7 @@ export abstract class EditForm<T extends HalResource = HalResource> {
// silently close the field as it will no longer be writable
if (!fieldSchema) {
this.closeEditFields([fieldName]);
return;
}
if (!fieldSchema.writable && !noWarnings) {
@@ -140,6 +140,15 @@ RSpec.shared_examples_for "associated custom action" do
end
end
describe "#value_objects" do
it "does not include nil for values not present in allowed_values" do
instance.values = [""]
expect(instance.value_objects)
.not_to include(nil)
end
end
it_behaves_like "associated custom action validations"
end
end