Salome HOME
Fix for #19722 - Field with string : impossible to save. Make strings-fields exported...
[modules/shaper.git] / src / ConnectorPlugin / ConnectorPlugin_PublishToStudyFeature.py
index d75dd6a52878940714aaa761e04e38c46009063a..a87eb0f6fcf36c6ea42e94bc076123c79557dcee 100644 (file)
@@ -224,7 +224,10 @@ class PublishToStudyFeature(ModelAPI.ModelAPI_Feature):
     def fillField(self, theField, theFeature, theEngine, theSelectionIndices):
       aTables = theFeature.tables("values")
       aValType = aTables.type() # type of the values
-      theField.SetValuesType(aValType)
+      aValTypeToSet = aValType
+      if aValType == 3: # strings do not supported by SMESH, so, make them empty boolean table
+        aValTypeToSet = 0
+      theField.SetValuesType(aValTypeToSet)
       aNumSteps = aTables.tables() # number of steps is number of tables
       aSteps = []
       for aVal in range(aNumSteps):