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

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

Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
b34c2999 by Victor Emanouilov at 2025-12-04T14:36:34+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
=====================================
@@ -471,7 +471,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/b34c29991d5b412d60255979bdaa2f583034c406

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