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++) {