anchor.diff:      <c:when test="${urlPrefix ne 'ti'}">
       function getSelectedProfile(profilesList) {
           var profileOid = document.getElementById('profileOid');
  -        var prfIdx = profilesList.map(function(elem) { return elem.oid; }).indexOf(profileOid.value);
  -        return profilesList[prfIdx];
  +        currentProfileIndex = profilesList.map(function(elem) { return elem.oid; }).indexOf(profileOid.value);
  +        return profilesList[currentProfileIndex];
       }
       </c:when>
       <c:otherwise>
       function getSelectedProfile(profilesList) {
  +        // the currentProfileIndex will not change from -1, but in the 'ti' state, only one profile can be edited
       return {
           name: "${profileName}",
           oid: "${command.profileOid}",
  
positive.code: 
  
  function toggleProvideOverrides(profilesList, harvesterTypeValueSelected, onPageLoad=false) {
  
      var selectedProfile = getSelectedProfile(profilesList);
  
      $('#currentImportedValue').prop('checked', (selectedProfile.imported == "true"));
  
      if (harvesterTypeValueSelected == 'HERITRIX1') {
  
negative.code:       $('#h3ProfileOverrides').hide();
        $('#h1Credentials').hide();
        $('#overrideH3RawProfileCheckbox').show();
        if ($('#overrideH3RawProfile').is(":checked")) {
          $('#editorDiv').show();
        } else {
          $('#editorDiv').hide();
        }
  