ianhomer / bugzillareports

This repository is deprecated - please use https://github.com/jnwatts/BugzillaReports
Apache License 2.0
0 stars 0 forks source link

Fails to compute trigraph when name contains only one word #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
{{#bugzilla:
  | nameformat=tla
}}

What is the expected output? What do you see instead?
-> System fails to display the page

What version of the product are you using? On what operating system?
-> 1.0, Windows

Please provide any additional information below.
-> Web server error log:
<<
(...) Call to undefined function substring() in D:\\mediawiki-1.11.0
\\extensions\\BugzillaReports\\BSQLQuery.php (...)
>>

Patch: BSQLQuery.php
@573
-     $tla=substring($value,0,3);
+     $tla=substr($value,0,3);

Original issue reported on code.google.com by arnauldvm on 8 May 2009 at 1:38

GoogleCodeExporter commented 8 years ago
Thanks for the patch ...

Original comment by ian.homer@gmail.com on 8 May 2009 at 2:22

GoogleCodeExporter commented 8 years ago

Original comment by ian.homer@gmail.com on 8 May 2009 at 2:24

GoogleCodeExporter commented 8 years ago
Reproduced by adding a new user called "Bobby" and with report ...

{{#bugzilla:
  | nameformat=tla | columns=+to
}}

Fixed (as provided in patch)

Original comment by ian.homer@gmail.com on 10 Jun 2009 at 9:40

GoogleCodeExporter commented 8 years ago

Original comment by ian.homer@gmail.com on 6 Jan 2010 at 12:24