From 7839512f0e28fdf001e493c1a40ceef5d66a3dee Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Thu, 3 Oct 2019 15:26:41 -0700 Subject: [PATCH] When collapsed, toString was referencing text_. Using getText instead. (#3150) --- core/block.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/block.js b/core/block.js index 06fc254ff..32e2403e8 100644 --- a/core/block.js +++ b/core/block.js @@ -1353,7 +1353,7 @@ Blockly.Block.prototype.toString = function(opt_maxLength, opt_emptyToken) { var text = []; var emptyFieldPlaceholder = opt_emptyToken || '?'; if (this.collapsed_) { - text.push(this.getInput('_TEMP_COLLAPSED_INPUT').fieldRow[0].text_); + text.push(this.getInput('_TEMP_COLLAPSED_INPUT').fieldRow[0].getText()); } else { for (var i = 0, input; input = this.inputList[i]; i++) { for (var j = 0, field; field = input.fieldRow[j]; j++) {