[TikiWiki-commits] [Git][tikiwiki/tiki][27.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 | <699617821ff46_3b186c1c55849@gitlab-sidekiq-low-urgency-cpu-bound-v2-6cdddf6d58-kccpn.mail> |
Jonny Bradley pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki Commits: eb26f68a by Jonny Bradley at 2026-02-18T19:48:15+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/eb26f68a0eb5131343b6ae5501f3bddb08219caa -- View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/eb26f68a0eb5131343b6ae5501f3bddb08219caa 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