create new tag
, view all tags

SID-02330: Date field blanked when editing

Status: Answered Answered TWiki version: 6.0.1 Perl version: v5.20.2
Category: EditTablePlugin Server OS: Debian Linux 8.9 Last update: 8 months 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

      Change status to:
ALERT! 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.
Status Answered
Title Date field blanked when editing
SupportCategory EditTablePlugin
TWiki version 6.0.1
Server OS Debian Linux 8.9
Web server Apache 2.4.10-10+deb8u10
Perl version v5.20.2
Browser & version Google Chrome 60.0.3112.113 (Official Build) (64-bit)
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2017-09-14 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.