nextcloud / nextcloud/tables

Cannot set/keep empty value for number column

Open
#2,994 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug
Dominant language
JavaScript
Stars
214
Forks
52
Avg merge
1d 10h
Merged PRs (30d)
82

Description

Steps to reproduce
  1. Create a table and add a number column with default configuration
  2. Create a row, in the modal just click save (leave the input field for the column value unchanged empty). The cell is empty.
  3. Edit the row, in the modal just click save (leave the input field for the column value unchanged empty). The cell value unexpectedly shows "0.00" (zero)
  4. Edit the cell, delete the value, press enter. The cell shows "0.00"
Expected behavior

Proper support for empty values. When leaving the value empty (unchanged) it should not be forced to "0" but remain unset. Deleting the value should make it unset. Also, prefixes and suffixes for empty values should not be shown.

Actual behavior

Values can only be empty upon initial creation or through import. Any change to a row turns an empty number value unexpectedly into a zero "0.00". Also, prefixes and suffixes for empty values are not hidden.

Tables app version

2.3.0

Browser

Firefox 155

Client operating system

Win11

Operating system

Ubuntu

Web server

Apache

PHP engine version

PHP 8.3

Database

MariaDB

Additional info

Nextcloud Hub 26 Spring (34.0.3)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the number-column flow described in the issue: create an empty value, edit and save the row, then delete the value and press Enter. Trace how empty number values are handled during row edits and cell rendering, including prefix and suffix display. Done means empty values remain unset after edits and prefixes or suffixes are hidden for them.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.