Commit a3c309ca authored by Jérome Perrin's avatar Jérome Perrin

ERP5Form: fix disabled fields not present in ZMI's "Order" tab

parent 6f22877e
......@@ -74,6 +74,11 @@ class TestERP5Form(ERP5TypeTestCase):
self.assertTrue(self.form.formUnProxify())
self.assertTrue(self.form.formShowRelatedProxyFields())
def test_zmi_form_order_disabled_fields(self):
self.assertIn('my_string_field', self.form.formOrder())
self.form.my_string_field.values['enabled'] = False
self.assertIn('my_string_field', self.form.formOrder())
def test_publish_set_content_type(self):
resp = self.publish(self.form.getPath())
self.assertIn(b"test string field", resp.getBody())
......
......@@ -26,7 +26,7 @@ Change the display order and grouping of the fields in this form.
</td></tr>
<tr><td>
<dtml-let fields="get_fields_in_group(group)" fields_amount="_.len(fields)">
<dtml-let fields="get_fields_in_group(group, include_disabled=True)" fields_amount="_.len(fields)">
<table class="table table-borderless table-sm">
<dtml-in fields>
<dtml-let field=sequence-item field_id="field.id">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment