Changeset 49c74e


Ignore:
Timestamp:
Nov 28, 2012, 9:53:50 AM (9 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
b4293d
Parents:
6722b7
Message:

extra-data was always stored, fixed this

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • content/vI_rdfDataEditor.js

    r6722b7 r49c74e  
    139139                document.getElementById("type_menu").selectedItem.getAttribute("key"),
    140140                localIdentityData,
    141                 true, true, rdfDataEditor.__recipient, rdfDataEditor.__type);
     141                true, true, rdfDataEditor.__recipient, rdfDataEditor.__type, true);
    142142        Log.debug("updateRDF done " + localIdentityData.extras.status());
    143143        return document.getElementById("type_menu").selectedItem.getAttribute("key");
  • modules/vI_rdfDatasource.js

    r6722b7 r49c74e  
    769769            vIprefs.get("storage_store_base_id"),
    770770            vIprefs.get("storage_store_SMTP"),
    771             null, null);
     771            null, null, false);
    772772    },
    773773   
     
    779779    },
    780780
    781     updateRDF : function (recDescription, recType, localIdentityData, storeBaseID, storeSMTP, prevRecDescription, prevRecType) {
     781    updateRDF : function (recDescription, recType, localIdentityData, storeBaseID, storeSMTP, prevRecDescription, prevRecType, updateAllExtras) {
    782782//         Log.debug("(" + this._rdfNS + "): updateRDF recDescription=" + recDescription + " localIdentityData.email=" + localIdentityData.email);
    783783       
     
    814814          localIdentityData.extras.loopThroughExtras(
    815815            function (extra) {
    816               extra.value = self._setRDFValue(resource, extra.field, extra.value) });
     816              if (updateAllExtras || extra.active)
     817                extra.value = self._setRDFValue(resource, extra.field, extra.value) });
    817818//           Log.debug("extras: " + localIdentityData.extras.status());
    818819        }
     
    11531154                    var localIdentityData = new identityData(email, fullName, id, smtp, new identityDataExtras(this._rdfImportDataSource, resource))
    11541155                   
    1155                     this._rdfDataSource.updateRDF(name, treeType, localIdentityData, false, false, null, null)
     1156                    this._rdfDataSource.updateRDF(name, treeType, localIdentityData, false, false, null, null, true)
    11561157                    var resource = this._rdfDataSource._getRDFResourceForVIdentity(name, treeType);
    11571158                    if (id) this._rdfDataSource._setRDFValue(resource, "id", id);       // localIdentityData can only store valid id's, this one might be a temporary invalid id
Note: See TracChangeset for help on using the changeset viewer.