Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-10486

Default status value in ExternalizableMetadataHelper.updateStatus()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.3.5, 4.4.0
    • 4.3.4, 4.4.0
    • None
    • None
    • 4.4 M3

      Steps to reproduce:

      1. Create a course without any synchronizable attributes, fill mandatory fields and save it.
      2. Add synchronizable attributes in your project (by adding an Apogée SCC on courses).
      3. Edit the course, change nothing and save it.
      4. Reopen it.
      5. The value of the courseType ("nature") attribute has been changed to the alt one.

      This kind of behavior can appears when adding a new SCC or after migrations that didn't force the local status, it's only done for previously synchronized attributes.

      Technical analysis:
      In the EditContentFunction, we make a call to ExternalizableMetadataHelper.updateStatus(), the default value when no status is defined is null instead of local, so current status is different than targetted status and current and alt values are inverted.

      Note that new API seems to be OK.

            Unassigned Unassigned
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: