SID-02330: Date field blanked when editing
| Status: |
Answered |
TWiki version: |
6.0.1 |
Perl version: |
v5.20.2 |
| Category: |
EditTablePlugin |
Server OS: |
Debian Linux 8.9 |
Last update: |
8 years ago |
When I try to edit a table row that includes a date field, as soon as I open the row the date field is blanked out. There's also no calendar button next to that field.
Test case:
%EDITTABLE{format="|date,15,"", %Y-%m-%d |"}%
| *Date* |
| 2014-11-07 |
--
Keith Edmunds - 2017-09-08
Discussion and Answer
This doesn't happen for me (Debian 8, TWiki 6.0.2). I created
Sandbox.SupportSID02330 to see whether it happens on twiki.org (Version 6.0.0 plus security patches) - and I don't see it either. I've tried Firefox, Edge and Chrome. However, I could create some strange things with more complex examples (also in that support topic).
Eventually I spotted what confuses TWiki's parser: You have a pair of double quotes
"" to denote an empty default value - but the double quote is the delimiter for the format string. The correct way to specify an empty string would be just - nothing - (or a space) between two consecutive commas:
%EDITTABLE{format="|date,15, , %Y-%m-%d |"}%
| *Date* |
| 2014-11-07 |
For testing with your browser:
--
Harald Jörg - 2017-09-08
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.