[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX] maps: Fix GeographicFeature edit data loss by propagating the current...

"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <699617638daeb_3b186aa09764a@gitlab-sidekiq-low-urgency-cpu-bound-v2-6cdddf6d58-mgt4v.mail>

Jonny Bradley pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
c835ace9 by Jonny Bradley at 2026-02-18T19:47:43+00:00
[FIX] maps: Fix GeographicFeature edit data loss by propagating the current...
---
* [FIX] maps: Fix GeographicFeature edit data loss by propagating the current value in the hidden input.
Needed in Cartograf following changes in trackers since 24.x

See merge request tikiwiki/tiki!9604


(cherry picked from commit a386667ea7b19fc7f8285faaf9cd4a8041477f94)

afe5d7bb [FIX] maps: Fix GeographicFeature edit data loss by propagating the current...

Co-authored-by: Jonny Bradley <[email protected]>
- - - - -


1 changed file:

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


Changes:

=====================================
lib/core/Tracker/Field/GeographicFeature.php
=====================================
@@ -44,8 +44,9 @@ class Tracker_Field_GeographicFeature extends \Tracker\Field\AbstractItemField i
     public function renderInput($context = [])
     {
         $ins_id = $this->getInsertId();
+        $value = $this->getValue();
         //This input is useful for facilitating the execution of rules
-        $hiddenInput = "<input type='hidden' name='$ins_id'>";
+        $hiddenInput = "<input type='hidden' name='$ins_id' value='$value'>";
         $translatedText = tr("Feature cannot be set or modified through this interface.");
         return $hiddenInput . $translatedText;
     }



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

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