Bug in table edit of forms editor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Silva |
Fix Released
|
Medium
|
Unassigned | ||
Silva Document |
Fix Released
|
Medium
|
Wim Boucquaert |
Bug Description
If the text in a table cell gets decorated, this will make the forms editor throwing an "AttributeError: strip" when the document in placed in a hierarchy somewhere under a folder with the ID 'data'.
Reason:
The problem is caused by the script "SilvaDocument/
---
if (len(node.
---
This condition acquires the object 'data' and calls to strip() method on it. This is correct if 'data' is a field returning a string. However, if hasattr(
Suggested fix:
Use 'node.childNode
---
if (len(node.
---
Does this solution have any unintended side effects?
Regards,
Benno
Changed in silvadocument: | |
status: | Fix Committed → Fix Released |
Changed in silva: | |
status: | Fix Committed → Fix Released |
Will a fix of this bug ported to the Silva 1.5 branch?