 
           profileName = t('Locked')
           if !isAllLocked
-            profileName = getRowLockingProfile(@ngScope.rawSurvey, @getRowName())?.name
+            profileName = getRowLockingProfile(@ngScope.rawSurvey, rowName)?.name
 
           tooltipMsg = t('fully locked group')
           if !isAllLocked

    getRawType: ->
      return @model.get('type').get('typeId')

    getRowName: ->
      return @model.getValue('name') or @model.getValue('$autoname')

    hasRestriction: (restrictionName) ->
      return hasRowRestriction(@ngScope.rawSurvey, @getRowName(), restrictionName)

    ###
    applyLocking: () ->
      rowName = @getRowName()

      # no point of checking locking for nameless row
      if rowName is null
        return

      isLockable = @isLockable()

      if (isRowLocked(@ngScope.rawSurvey, rowName))
