Ticket #2302 (new defect)

Opened 9 years ago

Flexible attached file widget with no HTML preview still computes it

Reported by: gracinet Owned by: gracinet
Priority: P2 Milestone: CPS 3.5.7
Component: CPS (global) Version: 3.5.1
Severity: normal Keywords:
Cc:

Description

Because the list of fields to create (with their configuration) is a class-level attribute of the (template) Attached File Widget, it is not really configurable.

The standard way to remove the preview link is to set the corresponding property to false on the widget, but this does not change what happens at the fields level. Since computation of the HTML preview (CPU and disk intensive, not so reliable) is done if the main File field has a non empty suffix_html property, it is done in any case.

This has been actually observed. We need a new property for that (after all, people could maybe change their minds or decide to use another means present the preview), and the should record the configuration of fields to create as instance-level attribute in _postProcessProperties().

Note: See TracTickets for help on using tickets.