Loading...
 
Skip to main content

Cannot use PluginFile more than once inside PluginFancyTable after upgrade from 6.1 to 8,1

Status
Closed
Subject
Cannot use PluginFile more than once inside PluginFancyTable after upgrade from 6.1 to 8,1
Version
8.x
Category
  • Regression
Feature
Wiki Plugin (extends basic syntax)
Resolution status
Fixed or Solved
Submitted by
hrsms
Lastmod by
lindon
Rating
(0)
Description

In 6.1 I successfully used this code:

Copy to clipboard
{FANCYTABLE(colwidths="10%|7.5%|7.5%|7.5%|7.5%|7.5%|7.5%|7.5%|7.5%|7.5%|7.5%|7.5%|7.5%",colaligns="center",colvaligns="middle")}2011|{FILE(fileId=602)}Jan{FILE}|{FILE(fileId=603)}Feb{FILE}|{FILE(fileId=626)}Mar{FILE}|{FILE(fileId=625)}Apr{FILE}|{FILE(fileId=627)}May{FILE}|{FILE(fileId=624)}Jun{FILE}|{FILE(fileId=629)}Jul{FILE}|{FILE(fileId=630)}Aug{FILE}|{FILE(fileId=631)}Sep{FILE}|{FILE(fileId=632)}Oct{FILE}|...|...{FANCYTABLE}


In 8.1 it now renders this result:

2011|[tiki-download_file.php?fileId=602|Jan~</td> <td class="odd" style=" width; background-color:"> 7.5%;">body2~Feb~</td> <td class="odd" style=" width; background-color:"> 7.5%;">body4~Mar~</td> <td class="odd" style=" width; background-color:"> 7.5%;">body6~Apr~</td> <td class="odd" style=" width; background-color:"> 7.5%;">body8~May~</td> and so on...

If I replace all but one instance of PluginFile the results are OK. If I add a second instance the results are as shown above.

Solution
Fixed for Tiki9x with commit r43071
Workaround
Copy to clipboard
{FANCYTABLE(colwidths="10%|7.5%|7.5%|7.5%|7.5%|7.5%|7.5%|7.5%|7.5%|7.5%|7.5%|7.5%|7.5%",colaligns="center",colvaligns="middle")}2011|{FILE(fileId=602)}Jan{FILE} | {FILE(fileId=603)}Feb{FILE} | {FILE(fileId=626)}Mar{FILE} | {FILE(fileId=625)}Apr{FILE} | {FILE(fileId=627)}May{FILE} | {FILE(fileId=624)}Jun{FILE} | {FILE(fileId=629)}Jul{FILE} | {FILE(fileId=630)}Aug{FILE} | {FILE(fileId=631)}Sep{FILE} | {FILE(fileId=632)}Oct{FILE} |...|...{FANCYTABLE}
Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4064
Created
Friday 02 December, 2011 04:37:57 UTC
by hrsms
LastModif
Friday 21 September, 2012 00:29:46 UTC


Show PHP error messages