Loading...
 
Skip to main content

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
(0)
Description

I have a simple tracker with two fields:

  • Name (type = text field)
  • Logo (type = files)


I have 2 items in the tracker:

Tracker IDNameLogo
1Test1 Image
2Test2
|


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 clipboard
Name: {$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 clipboard
Name: Test1 Logo: {img fileId="1908" thumb="box"} --- Name: Test2 Logo: EMPTY


But I actually get this:

Copy to clipboard
Name: 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+
Demonstrate Bug (older Tiki versions)
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


Show PHP error messages