Skip to content

Commit

Permalink
Fix creation of unpartitioned tables:
Browse files Browse the repository at this point in the history
Partition count input is now empty instead of 0 when no partitions

Signed-off-by: Lukas Bixen <lrb2_@outlook.com>
  • Loading branch information
lrb2 committed Aug 9, 2021
1 parent c90affe commit f0a0342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/columns_definitions/partitions.twig
Expand Up @@ -37,7 +37,7 @@
<td><label for="partition_count">{% trans 'Partitions:' %}</label></td>
<td colspan="2">
<input name="partition_count" type="number" min="2"
value="{{ partition_details['partition_count'] }}">
value="{{ partition_details['partition_count'] ?: '' }}">
</td>
</tr>
{% if partition_details['can_have_subpartitions'] %}
Expand Down Expand Up @@ -65,7 +65,7 @@
<td><label for="subpartition_count">{% trans 'Subpartitions:' %}</label></td>
<td colspan="2">
<input name="subpartition_count" type="number" min="2"
value="{{ partition_details['subpartition_count'] }}">
value="{{ partition_details['subpartition_count'] ?: '' }}">
</td>
</tr>
{% endif %}
Expand Down

0 comments on commit f0a0342

Please sign in to comment.