Loading...
 
Skip to main content

Typos in /lib/prefs/short.php and users.php prohibit displaying help text

Status
Pending
Subject
Typos in /lib/prefs/short.php and users.php prohibit displaying help text
Version
18.x
21.x
22.x
Category
  • Bug
  • Consistency
  • Usability
  • Easy for Newbie Dev
  • Less than 30-minutes fix
Feature
Admin Interface (UI)
Resolution status
Partially solved
Submitted by
hman
Volunteered to solve
Jonny Bradley
Lastmod by
hman
Rating
(0)
Description

There is a typo in /lib/prefs/short.php which makes displaying the help texts impossible, and it is carried on (through copy&paste by the dev).

Look at these code snippets:

Copy to clipboard
function prefs_short_list() { return [ 'short_date_format' => [ 'name' => tra('Short date format'), 'descriprion' => tra('Specify how Tiki displays the date (shorter version)'), ..... 'descriprion' => tra('Specify how Tiki displays the time (shorter version)'),


The error is in lines 13 and 23: "descprion" should read "description"... This results in help texts that contain a heading (contained in 'name'), but no text...

This affects all languages, including English...

Workaround
Fixed in trunk in 59733c58
Importance
5
Easy to solve?
10 easy
Priority
50
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7429
Created
Tuesday 21 July, 2020 08:32:53 UTC
by hman
LastModif
Tuesday 21 July, 2020 12:05:59 UTC


Show PHP error messages