Empty FILES tracker fields aren't really empty
- Status
- Open
- Subject
- Empty FILES tracker fields aren't really empty
- Version
- 24.x
- Category
- Bug
- Feature
- Trackers
- Resolution status
- New
- Submitted by
- Rick Sapir / Tiki for Smarties
- Lastmod by
- Rick Sapir / Tiki for Smarties
- Rating
- Description
I have a simple tracker with two fields:
- Name (type = text field)
- Logo (type = files)
I have 2 items in the tracker:
|Tracker ID Name Logo 1 Test1 2 Test2
I have a simple wiki page with a TRACKERLIST plugin:Copy to clipboard{trackerlist trackerId="1" fields="1:2" sort_mode="f_1_asc" list_mode="y" wiki="TestingTPL"}
I have a simple wiki template page (TestingTPL):Copy to clipboardName: {$f_1} Logo: {if !empty($f_2)}{$f_2}{else}EMPTY{/if} ---
I expect the output of the wiki page with the TRACKERLIST plugin to be:Copy to clipboardName: Test1 Logo: {img fileId="1908" thumb="box"} --- Name: Test2 Logo: EMPTY
But I actually get this:Copy to clipboardName: Test1 Logo: {img fileId="1908" thumb="box"} --- Name: Test2 Logo:
When I examine the generated HTML for Test2 it has the Logo field as nbsp;The FILES type field is being filled with nbsp; even when there is no uploaded file for the tracker item.
- Importance
- 10 high
- Easy to solve?
- 5
- Priority
- 50
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 8265
- Created
- Wednesday 14 December, 2022 14:54:12 UTC
by Rick Sapir / Tiki for Smarties - LastModif
- Wednesday 14 December, 2022 14:57:28 UTC