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

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a214c3660d95_38194448320f7@gitlab-sidekiq-low-urgency-cpu-bound-v2-6564bf9646-r7j55.mail>

ushindi bienvenu pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
7c0d5f89 by Landry Bitege at 2026-06-04T09:51:41+00:00
[BP][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
---
* [FIX] Tracker Wiki field: prevent crash when fieldIdForPagename is undefined with tracker_legacy_insert enabled

See merge request tikiwiki/tiki!10187

(cherry picked from commit 68dcef22c4c9cd4c6c9639a963e62c748e06d123)

See merge request tikiwiki/tiki!10441

- - - - -


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/7c0d5f89f48646b8cf48af69d037555524e39428

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