[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Tracker Wiki field: prevent crash when fieldIdForPagename is undefined...

"Adrien Mbuya Maloba \(@adrienmaloba\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a0471e36b6d8_3819134c4297a@gitlab-sidekiq-low-urgency-cpu-bound-v2-784d7b6ddd-qw8k5.mail>

Adrien Mbuya Maloba pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
68dcef22 by Landry Bitege at 2026-05-13T15:24:25+03:00
[FIX] Tracker Wiki field: prevent crash when fieldIdForPagename is undefined with tracker_legacy_insert enabled
---
* [FIX] Tracker Wiki field: prevent crash when fieldIdForPagename is undefined with tracker_legacy_insert enabled

See merge request tikiwiki/tiki!10187

- - - - -


1 changed file:

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


Changes:

=====================================
lib/core/Tracker/Field/Wiki.php
=====================================
@@ -231,7 +231,8 @@ class Tracker_Field_Wiki extends Tracker_Field_Text implements \Tracker\Field\Ex
                 $itemData = $this->getItemData();                   // calculated field types like auto-increment need rendering
                 $definition = $this->getTrackerDefinition();
                 $factory = $definition->getFieldFactory();
-                $field_info = $definition->getField($this->getOption('fieldIdForPagename'));
+                $pagenameFieldId = $this->getOption('fieldIdForPagename');
+                $field_info = $pagenameFieldId ? $definition->getField($pagenameFieldId) : null;
                 if ($field_info) {
                     $handler = $factory->getHandler($field_info, $itemData);
                     $page_name = $handler->renderOutput(['list_mode' => 'csv']);



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/68dcef22c4c9cd4c6c9639a963e62c748e06d123

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/68dcef22c4c9cd4c6c9639a963e62c748e06d123
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
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.