[TikiWiki-commits] [Git][tikiwiki/tiki][28.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 <69318069b2bea_2a17c6b852313@gitlab-sidekiq-low-urgency-cpu-bound-v2-749bb7fd7d-sjfms.mail>

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


Commits:
348a64cf by Victor Emanouilov at 2025-12-04T14:36:53+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/348a64cf45addd48258a16c4a0c3d4dcd1e5162e

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/348a64cf45addd48258a16c4a0c3d4dcd1e5162e
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.