[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [FIX] Text field bin2hex fix for null values

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6931806f5cdf9_2a123c63869129@gitlab-sidekiq-low-urgency-cpu-bound-v2-749bb7fd7d-gn4hp.mail>

Victor Emanouilov pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
0eb786f2 by Victor Emanouilov at 2025-12-04T14:36:58+02:00
[FIX] Text field bin2hex fix for null values

- - - - -


1 changed file:

- lib/core/Tracker/Field/Text.php


Changes:

=====================================
lib/core/Tracker/Field/Text.php
=====================================
@@ -454,7 +454,7 @@ class Tracker_Field_Text extends \Tracker\Field\AbstractItemField implements \Tr
                     return hex2bin($value);
                 })
                 ->setParseIntoTransform(function (&$info, $value) use ($permName) {
-                    $info['fields'][$permName] = bin2hex($value);
+                    $info['fields'][$permName] = is_null($value) ? null : bin2hex($value);
                 })
                 ;
         } else {



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/0eb786f2ff14e89145be637ac8d1210c48390205

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/0eb786f2ff14e89145be637ac8d1210c48390205
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.