Ticket #422 (new defect)

Opened 15 years ago

Last modified 14 years ago

Redisplay after edit does not reflect the real datamodel

Reported by: fguillaume Owned by: fguillaume
Priority: P2 Milestone: CPS 3.5.7
Component: CPSSchemas Version: unspecified
Severity: normal Keywords: widgets

Description (last modified by fguillaume) (diff)

Redisplay after edit does not reflect the real datamodel.

During document commit, when a field write expression modifies the value stored, the datastructure is not updated, which gives an incorrect redisplay to the user.

Note: when a widget "changes" the value during the validation phase, it's currently the widget's job to re-update the datastructure to reflect that. This is not the point of the current bug.

Change History

comment:1 Changed 15 years ago by madarche

  • Cc madarche@… added

comment:2 Changed 15 years ago by fguillaume

After the widgets have been validated and validateLayoutStructure has been called, if everything is ok, dm._commit is called (by several different places in the code, in CPSSchemas, CPSDocument and CPSDirectory).

To fix this, in theory after _commit is called the datastructure should be recomputed.

Another better option would be to change the model of redisplay after validation, to not have some HTML returned but just have a redirect to the page, which would then of course completely recompute the datastructure.

comment:3 Changed 14 years ago by fguillaume

  • Description modified (diff)
  • Milestone changed from unspecified to CPS 3.5.0

Will be obsoleted when a full session-based rendering / multipage is done.

Note: See TracTickets for help on using tickets.