Project

General

Profile

Actions

Architecture #10825

closed

Bad comparison in unique variable

Added by François ARMAND over 7 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Internal libs
Target version:
Effort required:
Name check:
Fix check:
Regression:

Description

We have a bad comparison in "def copyWithSetVariables(variables:Seq[Variable]) : Cf3PolicyDraft" which alway lead to always copy variables, changing their update time even if not needed.

      variableMap.get(variable.spec.name) match {
        case None => Some(variable)
        case Some(values) => if(values == variable.values) None else Some(variable)  //here, it is Some(otherVariable), not values!
      }
Actions

Also available in: Atom PDF