Overview
Comment:Don't allow members who don't have admin access to see SQL queries, just the result
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: ddfe33054659926f682dc29da863ddb490288525
User & Date: bohwaz on 2020-12-11 21:32:21
Other Links: manifest | tags
Context
2020-12-11
21:37
Release check-in: 704f4a0e3d user: bohwaz tags: trunk, stable, 1.0.0-rc13
21:32
Don't allow members who don't have admin access to see SQL queries, just the result check-in: ddfe330546 user: bohwaz tags: trunk, stable
21:14
Oops check-in: f815e596f6 user: bohwaz tags: trunk, stable
Changes

Modified src/templates/common/search/advanced.tpl from [e6d27e3303] to [4ff50293ec].

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
			<input type="hidden" name="id" value="{$search.id}" />
			{if $search.id}
				{button name="save" value=1 type="submit" label="Enregistrer : %s"|args:$search.intitule|truncate:40:"…":true shape="upload"}
			{else}
				{button name="save" value=1 type="submit" label="Enregistrer cette recherche" shape="upload"}
			{/if}
		</p>
	{elseif !$sql_disabled}
		<legend>Rechercher</legend>
		<div class="queryBuilder" id="queryBuilder"></div>
		<p class="actions">
			<label>Trier par
				<select name="order">
					{foreach from=$columns key="column" item="properties"}
					<option value="{$column}"{if $query.order == $column} selected="selected"{/if}>{$properties.label}</option>







|







25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
			<input type="hidden" name="id" value="{$search.id}" />
			{if $search.id}
				{button name="save" value=1 type="submit" label="Enregistrer : %s"|args:$search.intitule|truncate:40:"…":true shape="upload"}
			{else}
				{button name="save" value=1 type="submit" label="Enregistrer cette recherche" shape="upload"}
			{/if}
		</p>
	{elseif !$sql_query}
		<legend>Rechercher</legend>
		<div class="queryBuilder" id="queryBuilder"></div>
		<p class="actions">
			<label>Trier par
				<select name="order">
					{foreach from=$columns key="column" item="properties"}
					<option value="{$column}"{if $query.order == $column} selected="selected"{/if}>{$properties.label}</option>