[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [BP, FIX, ENH] api: Fix the "Content Authentication" form on Admin Content Sources

"Sammy Ndabo \(@ndabosam084\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68b1ab1ea6f44_2ddc85c39610@gitlab-sidekiq-low-urgency-cpu-bound-v2-7cb4b46497-lclcn.mail>

Sammy Ndabo pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
15f70da3 by Sammy Ndabo at 2025-08-29T13:22:27+00:00
[BP, FIX, ENH] api: Fix the "Content Authentication" form on Admin Content Sources
---
* [BP][FIX] tiki-tracker_view_history.php: Fix tiki-tracker_view_history ERROR
---
* [FIX, ENH] api: Fix the "Content Authentication" form on Admin Content Sources
---
* [FIX, ENH] api: Fix the "Content Authentication" form on Admin Content Sources
---
* [FIX] api: Fix the "Content Authentication" form on Admin Content Sources (tiki-admin_dsn.php) so it shows what's being saved properly - note you need to not set a user here for tiki-admin_sync.php to work.

* [FIX] wikiplugin_tracker: Allow not having a preview button

See merge request tikiwiki/tiki!8451

(cherry picked from commit 8ec37ffab64e95c232fabd85998fe2b31234d2dc)

See merge request tikiwiki/tiki!8452

(cherry picked from commit b5a909269709ce22eb4e41a435f4686435d72194)

See merge request tikiwiki/tiki!8453

(cherry picked from commit b19a224a8736001dffc82a9f5eee3413af786756)

See merge request tikiwiki/tiki!8455

- - - - -


1 changed file:

- templates/tiki-admin_dsn.tpl


Changes:

=====================================
templates/tiki-admin_dsn.tpl
=====================================
@@ -210,8 +210,13 @@ $('#source-form').each(function () {
         reload = function () {
             $('option.added', form).remove();
             $.getJSON($.service('auth_source', 'list'), function (entries) {
+                const urlParams = new URLSearchParams(window.location.search);
                 $.each(entries, function (k, v) {
-                    $(form.existing).append($('<option class="added"/>').text(v));
+                    $(form.existing).append(
+                        $('<option class="added"/>')
+                            .text(v)
+                            .prop("selected", v === urlParams.get('identifier'))
+                    );
                 });
 
                 $(form.existing).trigger("change.select2");
@@ -238,7 +243,7 @@ $('#source-form').each(function () {
                 $(form.identifier).val(id);
                 $(form.method).val(data.method).trigger("change").trigger("change.select2");
                 $(form.url).val(data.url);
-                $(form.user).val(data.user);
+                $(form.user).val(data.user).trigger("change.select2");
 
                 switch (data.method) {
                 case 'basic':



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

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