Overview
Comment:Do not allow old versions to be selected for restore
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: 3e13a2fccf887d3a84cfbd473b2501f561d55043d1e2036f92ab8297ab054eca
User & Date: bohwaz on 2022-04-14 17:53:55
Other Links: manifest | tags
Context
2022-04-17
23:39
Add transaction label in linked transactions list check-in: 0600f7c1a6 user: bohwaz tags: trunk, stable
2022-04-14
17:53
Do not allow old versions to be selected for restore check-in: 3e13a2fccf user: bohwaz tags: trunk, stable
17:50
Fix [c68447c14ca1cbc82ddf5880d1b6304c5cc6c7d1] reset transaction status when duplicating check-in: 76dec6eb02 user: bohwaz tags: trunk, stable
Changes

Modified src/templates/admin/config/backup/restore.tpl from [0ec7bed822] to [03715cceb0].

76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
						<td>Date</td>
						<td>Version</td>
						<td></td>
					</tr>
				</thead>
			{foreach from=$list item="backup"}
				<tr>
					<td class="check">{input type="radio" name="selected" value=$backup.filename}</td>
					<th><label for="f_selected_{$backup.filename}">{$backup.name}</label></th>
					<td>{$backup.size|size_in_bytes}</td>
					<td>{$backup.date|date_short:true}</td>
					<td>{$backup.version}{if !$backup.can_restore} — <span class="alert">Version trop ancienne pour pouvoir être restaurée</span>{/if}</td>
					<td class="actions">
						{linkbutton href="?download=%s"|args:$backup.filename label="Télécharger" shape="download"}
					</td>







|







76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
						<td>Date</td>
						<td>Version</td>
						<td></td>
					</tr>
				</thead>
			{foreach from=$list item="backup"}
				<tr>
					<td class="check">{if $backup.can_restore}{input type="radio" name="selected" value=$backup.filename}{/if}</td>
					<th><label for="f_selected_{$backup.filename}">{$backup.name}</label></th>
					<td>{$backup.size|size_in_bytes}</td>
					<td>{$backup.date|date_short:true}</td>
					<td>{$backup.version}{if !$backup.can_restore} — <span class="alert">Version trop ancienne pour pouvoir être restaurée</span>{/if}</td>
					<td class="actions">
						{linkbutton href="?download=%s"|args:$backup.filename label="Télécharger" shape="download"}
					</td>