Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-2275

internshipAbroad is not imported

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.4
    • Fix Version/s: 4.1.11, 4.3.0
    • Component/s: Synchro
    • Labels:
      None

      Description

      It seems that the cdm field trainingAbroadInfo (internshipAbroad in Ametys) is not imported.

      I found that in the file `/Ametys - Plugin ODF Sync/main/plugin-odf-sync/stylesheets/program2content.xsl`

      In the template `program-trainingInfo`, the label is set, and not the cdm value.

       

      To solve this, replace

      `<internshipAbroad><xsl:value-of select="cdm:infoBlock[@userDefined = 'ametys-extension']/cdm:extension/ametys-cdm:training/ametys-cdm:trainingAbroadInfo"/></internshipAbroad>`

      with

      `<internshipAbroad><xsl:value-of select="cdm:infoBlock[@userDefined = 'ametys-extension']/cdm:extension/ametys-cdm:training/ametys-cdm:trainingAbroadInfo/@value"/></internshipAbroad>`

       

      (not tested this way, I made it in my project)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pgros Pierre Gros
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: