Changeset 24454 in main


Ignore:
Timestamp:
01/11/22 15:59:02 (4 months ago)
Author:
GarthBraithwaite_STG
Message:

java - Fixed save error within SaveDatasetRecordListController?.java to only look for single dataset name vs array.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ibisph/src/main/java/org/ibisph/indicatorprofile/springmvc/databean/SaveDatasetRecordListController.java

    r23335 r24454  
    5757    int processedCount = 0;
    5858    String[] modified    = request.getParameterValues(this.modifiedParameterName);
    59     String[] datasetName = request.getParameterValues(this.datasetNameParameterName);
     59    String   datasetName = request.getParameter(this.datasetNameParameterName);
    6060    for(int i=0; i<modified.length; i++) {
    6161      if(StrLib.isSomething(modified[i])) {
     
    7070        // Since modified delete the record's assoc AV's
    7171        DatasetRecordAncillaryValue datasetRecordAncillaryValue = new DatasetRecordAncillaryValue();
    72         datasetRecordAncillaryValue.setFieldValue("DATASET_NAME", datasetName[i]);
     72        datasetRecordAncillaryValue.setFieldValue("DATASET_NAME", datasetName);
    7373        datasetRecordAncillaryValue.setFieldValue("PERIOD_DIMENSION_NAME",  datasetRecord.getPeriodDimensionName());
    7474        datasetRecordAncillaryValue.setFieldValue("PERIOD_DIMENSION_VALUE", datasetRecord.getPeriodDimensionValue());
     
    9292          ArrayList<DataBean> ancillaryValueToDatasetCollection = new ArrayList<DataBean>();
    9393          AncillaryValueToDataset ancillaryValueToDataset = new AncillaryValueToDataset();
    94           ancillaryValueToDataset.setFieldValue("DATASET_NAME", datasetName[i]);
     94          ancillaryValueToDataset.setFieldValue("DATASET_NAME", datasetName);
    9595          this.requestParametersToDataBeanService.getDAOFactory().getDAO(ancillaryValueToDatasetCollection, ancillaryValueToDataset).load();
    9696
Note: See TracChangeset for help on using the changeset viewer.