[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [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 <68b198aae10f3_2cdc6e0264e@gitlab-sidekiq-low-urgency-cpu-bound-v2-6f77f6d69d-ccbtv.mail>

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


Commits:
b5a90926 by Sammy Ndabo at 2025-08-29T12:02:12+00:00
[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

- - - - -


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'))
+                    );
                 });
             });
         },
@@ -236,7 +241,7 @@ $('#source-form').each(function () {
                 $(form.identifier).val(id);
                 $(form.method).val(data.method).trigger("change");
                 $(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/b5a909269709ce22eb4e41a435f4686435d72194

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