Skip to main content

Topics

This section allows you to view all Topics made by this member. Note that you can only see Topics made in areas you currently have access to.

Topics - tin

1
Bugs / javascript working not corectly if field is same name.
javascript will working not corectly if field is same name because phprad use a main function script (file name : page-script.js)
if control name was the same name.
(ex. table 1 have field group_id and table 2 have group_id too.)
javascript that assign to table1 page will tricker on table2 page too.(because group_id is the same name. :-X
2
Bugs / UTF8 on Audit trail logs
On RequestData field data is not correct.
I found code in BaseController.php
Code: [Select]
$request_data = json_encode($modeldata);
the corect code to solve for utf8 data is
Code: [Select]
$request_data = json_encode($modeldata, JSON_UNESCAPED_UNICODE);
7
Bugs / Bug in to_number format field
PHPRad classic 2.6.9
Bug : mismatch coding in function helper online 559


Fix by : DECIMAL
function to_number($val,$lang='en'){
      $f = new NumberFormatter($lang, NumberFormatter::DECIMAL);
      return $f->format($val);
   }

Tin.
8
Suggestions / Fix unicode query on PDO
Hi,
I just test PHPRad output project.It have a problem with unicode data utf8.
In project I already check all utf8 setting.It already set,but data still show ????? in table(I use Thai language).
I investigate in your PDO function and find out to solve problem by SET NAME utf8

I add code in file PDODb.php at line 699 to
Code: [Select]
$this->pdo->query("SET NAMES utf8");

It all fix.
Just to tell other utf8 format have a problem.To solve it,You need to add  SET NAME too.
Tin.