Ticket #1666 (new defect)

Opened 13 years ago

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

Reported by: ybastide Owned by: fguillaume
Priority: P2 Milestone: CPS 3.5.7
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 Download (4.9 KB) - added by ybastide 13 years ago.

Change History

Changed 13 years ago by ybastide

Note: See TracTickets for help on using tickets.