diff --git a/modules/editor/components/poll_maker/tpl/popup.js b/modules/editor/components/poll_maker/tpl/popup.js index fa878ceee..c2f58afdc 100644 --- a/modules/editor/components/poll_maker/tpl/popup.js +++ b/modules/editor/components/poll_maker/tpl/popup.js @@ -70,7 +70,7 @@ jQuery(function($){ $tr = $(this).prevAll('div').children('table').find('>tbody>tr:last'); match = $tr.find('td>input').attr('name').match(/item_(\d+)_(\d+)/); - if(!match || match[2] == 2) return; + if(!match) return; $tr.remove();