From 0695ac28833af6cae6861eae98a6a066d8243756 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Sat, 19 Jan 2019 23:29:12 +0100 Subject: [PATCH] fixed "Staatsgalerie bug" - "relabel" did not restore drop-down choice when localized --- HISTORY.md | 3 +++ snap.html | 2 +- src/blocks.js | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 943f1eb9..7d9c9fd4 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,9 @@ ## in development +### 2019-01-19 +* fixed "Staatsgalerie bug" - relabel did not restore drop-down choice when localized + ### 2019-01-17 * Greek translation update, thanks, Alexandros Prekates! * cloud: user role support, thanks, Bernat diff --git a/snap.html b/snap.html index 2d9d83a0..3c145e0d 100755 --- a/snap.html +++ b/snap.html @@ -6,7 +6,7 @@ - + diff --git a/src/blocks.js b/src/blocks.js index d84806ea..0492b8e2 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -148,7 +148,7 @@ CustomCommandBlockMorph, SymbolMorph, ToggleButtonMorph, DialMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2019-January-16'; +modules.blocks = '2019-January-19'; var SyntaxElementMorph; var BlockMorph; @@ -3047,6 +3047,9 @@ BlockMorph.prototype.restoreInputs = function (oldInputs) { // "fix" may be wrong b/c constants if (old.contents) { inp.setContents(old.contents().text); + if (old.constant) { + inp.constant = old.constant; + } } } else if (old instanceof CSlotMorph && inp instanceof CSlotMorph) { nb = old.nestedBlock();