Mercurial > p > roundup > code
diff CHANGES.txt @ 6463:8e06194ff0b0
fix isset() for StringHTMLProperty
isset() is used in templates on a StringHTMLProperty, it
returns True. 2.1.0 made default_value work properly. Hyperdb.py's
String(_Type) class sets the default value to the empty
string and not None. Change __init__ so default_value is None and
not "". roundup-user mailing list thread:
https://sourceforge.net/p/roundup/mailman/roundup-users/thread/20210801020640.73ac1729%40Dell/#msg37328813
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 02 Aug 2021 23:26:20 -0400 |
| parents | b98d85e26ff1 |
| children | 28461636e249 |
line wrap: on
line diff
--- a/CHANGES.txt Sat Jul 31 20:39:37 2021 -0400 +++ b/CHANGES.txt Mon Aug 02 23:26:20 2021 -0400 @@ -32,6 +32,13 @@ - issue2551122 - fixing order by a link/multilink broke other props should be final change for that ticket. (John Rouillard) +- when isset() is used in templates on a StringHTMLProperty, it + returns True. 2.1.0 made default_value work properly. Hyperdb's + String(_Type) class sets the default value to the empty string and + not None. Change __init__ so default_value is None and not "". + roundup-user mailing list thread: + https://sourceforge.net/p/roundup/mailman/roundup-users/thread/20210801020640.73ac1729%40Dell/#msg37328813 + (reported by Nagy Gabor. fix: John Rouillard) Features:
