Ticket #1666 (new defect)

Opened 3 years ago

Flexible documents and compound widgets: CPSFileField can't retrieve the right dependant fields ids

Reported by: ybastide Assigned to: fguillaume
Priority: P2 Milestone: CPS 3.5.0
Component: CPSSchemas Version: TRUNK
Severity: normal Keywords: flexible document compound file
Cc:

Description

CPSFileField.computeDependantFields and CPSFileField._getDependantFieldId don't work as sub-objects of a flexible document (compound widget). This because

  1. _getDependantFieldId doesn't remove the current field's suffix (looking for e.g. file_f0_f1 instead of file_f1)
  2. computeDependantFields can't find a generated .html's sub-objects.

Patch attached.

I suspect CPSOOo's CPSOOoDocbookFileField suffers a similar problem.

yves

Attachments

BasicFields.diff (4.9 kB) - added by ybastide on 06/05/06 22:10:26.

Change History

06/05/06 22:10:26 changed by ybastide

  • attachment BasicFields.diff added.