fixed undefined variable $can_be_edited when add new line items via ajax