Loading...
 
Skip to main content

Insertion_syntax is broken when uploading a file in a wiki page using the Tikifile upload icon (plugin?)

Status
Closed
Subject
Insertion_syntax is broken when uploading a file in a wiki page using the Tikifile upload icon (plugin?)
Version
19.x
20.x
21.x
Category
  • Error
  • Regression
  • Upgrade Blocker
Feature
File Gallery (elFinder or standard UI)
Resolution status
Please retest
Submitted by
Bernard Sfez / Tiki Specialist
Volunteered to solve
Jonny Bradley
Keep informed
Jonny Bradley
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Related-to
Description

The upload file plugin ( on the toolbar) is broken.
When you use it it return the value of the "insertion_syntax" instead of the plugin that should be inserted in the wiki page. It can be tested on this ticket using the toolbar upload file.

I traced the code and it lead to lib/jquery_tiki/files.js, function processFgalSyntax that return the actual wrong syntax ("file").
It should instead return the syntax like the one that can be found at : lib/filegals/filegallib.php line 2140:

Copy to clipboard
$syntax = '{file type="gallery" fileId="%fileId%" showicon="y"}';


Image
(inserted manually due to another bug)



Solution
Hopefully ba6420ff ?
Importance
8
Easy to solve?
8
Priority
64
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7266
Created
Wednesday 19 February, 2020 11:15:54 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Thursday 20 February, 2020 08:04:16 UTC


Show PHP error messages