[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] tiki-admin.php?page=profiles (Advanced tab): ensure selected cache...

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <695f139bd3dc9_2c180420994b7@gitlab-sidekiq-low-urgency-cpu-bound-v2-7dd748c866-r2xk5.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
2999f704 by David Maene at 2026-01-08T02:08:55+00:00
[FIX] tiki-admin.php?page=profiles (Advanced tab): ensure selected cache...
---
* [FIX] tiki-admin.php?page=profiles (Advanced tab): ensure selected cache option remains inside the select input after validation

See merge request tikiwiki/tiki!9289

- - - - -


1 changed file:

- templates/admin/include_profiles.tpl


Changes:

=====================================
templates/admin/include_profiles.tpl
=====================================
@@ -320,16 +320,21 @@
                         <input class="form-control" type="text" name="profile_tester_name" id="profile_tester_name" value="{if isset($profile_tester_name)}{$profile_tester_name}{else}Test{/if}" />
                         </div>
                         <div class="col-sm-4">
-                            <select class="form-select" name="empty_cache" class="form-control">
-                            <option value=""{if isset($empty_cache) and $empty_cache eq ''} checked="checked"{/if}>{tr}None{/tr}</option>
-                            <option value="all"{if isset($empty_cache) and $empty_cache eq 'all'} checked="checked"{/if}>{tr}All{/tr}</option>
-                            <option value="templates_c"{if isset($empty_cache) and $empty_cache eq 'templates_c'} checked="checked"{/if}>templates_c</option>
-                            <option value="temp_cache"{if isset($empty_cache) and $empty_cache eq 'temp_cache'} checked="checked"{/if}>temp_cache</option>
-                            <option value="temp_public"{if isset($empty_cache) and $empty_cache eq 'temp_public'} checked="checked"{/if}>temp_public</option>
-                            <option value="modules_cache"{if isset($empty_cache) and $empty_cache eq 'modules_cache'} checked="checked"{/if}>modules_cache</option>
-                            <option value="prefs"{if isset($empty_cache) and $empty_cache eq 'prefs'} checked="checked"{/if}>prefs</option>
-                        </select>{$empty_cache}
-                            </div>
+                            {html_options
+                                name="empty_cache"
+                                class="form-select"
+                                options=[
+                                    "" => "{tr}None{/tr}",
+                                    "all" => "{tr}All{/tr}",
+                                    "templates_c" => "templates_c",
+                                    "temp_cache" => "temp_cache",
+                                    "temp_public" => "temp_public",
+                                    "modules_cache" => "modules_cache",
+                                    "prefs" => "prefs"
+                                ]
+                                selected=$empty_cache
+                            }
+                        </div>
                     </div>
                     <div class="mb-3 row">
                         <div class="col-sm-12">
@@ -347,7 +352,7 @@
 {/tabset}
 
 {jq}
-        {{foreach item=k from=$oldSources}
-                $.profilesRefreshCache("{$baseURI}", "{$k}");
+    {{foreach item=k from=$oldSources}
+        $.profilesRefreshCache("{$baseURI}", "{$k}");
     {/foreach}}
 {/jq}



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

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