[TikiWiki-commits] [Git][tikiwiki/tiki][29.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 <693180625a838_2a17cc80556fe@gitlab-sidekiq-low-urgency-cpu-bound-v2-749bb7fd7d-ffzhq.mail>

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


Commits:
81ffe319 by Victor Emanouilov at 2025-12-04T14:36:45+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/81ffe3198a5fbfbce47487a2f2488d48f2e5b601

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