Skip to content

Commit 8389085

Browse files
authored
Merge branch 'master' into PHRAS-4125_release-4.1.15
2 parents 92c3feb + b33bcd9 commit 8389085

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

Phraseanet-production-client/dist/production.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69228,7 +69228,7 @@ var search = function search(services) {
6922869228
_.each(_tmpStat, function (v, sbas_id) {
6922969229
var status = [];
6923069230
_.each(v, function (v, sb_index) {
69231-
if (v !== -1) {
69231+
if (!_.isUndefined(v) && v !== -1) {
6923269232
// ignore both checked
6923369233
status.push({
6923469234
'index': sb_index,

Phraseanet-production-client/dist/production.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69228,7 +69228,7 @@ var search = function search(services) {
6922869228
_.each(_tmpStat, function (v, sbas_id) {
6922969229
var status = [];
6923069230
_.each(v, function (v, sb_index) {
69231-
if (v !== -1) {
69231+
if (!_.isUndefined(v) && v !== -1) {
6923269232
// ignore both checked
6923369233
status.push({
6923469234
'index': sb_index,

Phraseanet-production-client/src/components/search/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ const search = services => {
491491
_.each(_tmpStat, function (v, sbas_id) {
492492
var status = [];
493493
_.each(v, function (v, sb_index) {
494-
if (v !== -1) {
494+
if (!_.isUndefined(v) && v !== -1) {
495495
// ignore both checked
496496
status.push({
497497
'index': sb_index,

lib/Alchemy/Phrasea/Controller/Prod/DownloadController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public function checkDownload(Request $request)
4242
$this->app->abort(403);
4343
}
4444

45+
if (!empty($request->request->get('type'))) {
46+
$this->app['session']->set('download_name_type', $request->request->get('type'));
47+
}
48+
4549
$lst = $request->request->get('lst');
4650
$ssttid = $request->request->get('ssttid', '');
4751
$subdefs = $request->request->get('obj', []);

templates/web/common/dialog_export.html.twig

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,19 @@
6161
<p>{{ 'Nom des fichiers a l\'export' | trans }}</p>
6262
<div class="well-small">
6363
<label for="type_{{id}}_original" class="radio">
64-
<input type="radio" name="type" id="type_{{id}}_original" {% if default_export_title == "title" %}checked{% endif %} value="title" />
64+
<input type="radio" name="type" id="type_{{id}}_original"
65+
{% if (app['session'].has('download_name_type') and app['session'].get('download_name_type') == "title") or (not app['session'].has('download_name_type') and default_export_title == "title" ) %}
66+
checked
67+
{% endif %}
68+
value="title" />
6569
{{ 'export::titre: titre du documument' | trans }}
6670
</label>
6771
<label for="type_{{id}}_title" class="radio">
68-
<input type="radio" name="type" id="type_{{id}}_title" {% if default_export_title == "original" %}checked{% endif %} value="originalname" />
72+
<input type="radio" name="type" id="type_{{id}}_title"
73+
{% if (app['session'].has('download_name_type') and app['session'].get('download_name_type') == "originalname") or (not app['session'].has('download_name_type') and default_export_title == "original" ) %}
74+
checked
75+
{% endif %}
76+
value="originalname" />
6977
{{ 'export::titre: nom original du document' | trans }}
7078
</label>
7179
</div>

0 commit comments

Comments
 (0)