From 02c5e92b53ab53544cc5473b73090340dab29f89 Mon Sep 17 00:00:00 2001 From: Ruslan Kabalin Date: Mon, 31 Jul 2023 22:54:32 +0100 Subject: [PATCH] Retain description, author and source fields on image type change. Fixes #129 --- public/js/module/photo/photo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/module/photo/photo.js b/public/js/module/photo/photo.js index 8df12442..97a015b8 100644 --- a/public/js/module/photo/photo.js +++ b/public/js/module/photo/photo.js @@ -1351,7 +1351,7 @@ define(['underscore', 'Utils', 'socket!', 'Params', 'knockout', 'knockout.mappin const changes = _.chain(koMapping.toJS(p)) .pick( - 'geo', 'dir', 'title', 'year', 'year2', 'address', + 'geo', 'dir', 'title', 'year', 'year2', 'address', 'desc', 'source', 'author', 'nowaterchange', 'watersignIndividual', 'disallowDownloadOriginIndividual' ) .transform(function (result, value, key) {