Fix for Edit Assignments encodedValue

@Query was using encodedName instead of encodeValue