Commit 9becd1a9 authored by Evan W. Patton's avatar Evan W. Patton Committed by Jeffrey Schiller

Fix incorrect infix in and/or n-ary block

Change-Id: I943b0cece8a8c6989a0fb8b933e4879082bad2cb
parent cc121a48
......@@ -363,7 +363,8 @@ Blockly.Blocks['logic_operation'] = {
},
updateFields: function(op) {
if (this.getInputsInline()) {
var text = Blockly.Blocks.logic_operation.IDENTITY(op);
var text = op === 'AND' ? Blockly.Msg.LANG_LOGIC_OPERATION_AND :
Blockly.Msg.LANG_LOGIC_OPERATION_OR;
for (var input, i = 2; (input = this.inputList[i]); i++) {
input.fieldRow[0].setText(text);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment