[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [BP][FIX] tiki-admin.php?page=profiles (Advanced tab): ensure selected cache...
"Baraka Kinywa \(@bkinywa24\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6963de2180759_2b87dde149224a@gitlab-sidekiq-low-urgency-cpu-bound-v2-6fddf5c78d-mc2qz.mail> |
Baraka Kinywa pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki
Commits:
07e876be by David Maene at 2026-01-11T19:22:26+02:00
[BP][FIX] tiki-admin.php?page=profiles (Advanced tab): ensure selected cache...
---
* [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
(cherry picked from commit 2999f70468f14f7c8c104476e089e51db99a00db)
See merge request tikiwiki/tiki!9342
- - - - -
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/07e876be15f9b65f3760d08bb664616fc7acd45d
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/07e876be15f9b65f3760d08bb664616fc7acd45d
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