Project

General

Profile

Feature #340

Updated by Alexander Watzinger over 5 years ago

Try to avoid that changes get overwritten when users are logged in simultaneously.

Display an error message if an entry was modified since the update form was opened.

Limitations:

1) Only the main entities are being checked on update (source, event, actor, place, reference. It could still be possible that e.g. a type name gets accidentally overwritten.

2) For data consistency it was decided against providing an option to overwrite data which has changed in the meantime.

3) Some advanced form elements doesn't behave like expected after an overwrite error e.g. jstree with multiple option isn't prefilled with chosen options, which shouldn't be a big issue, since the entry cant be saved in this state anyway.

*To do*

- place
- reference

- refactor controllers with ternary operators for readability
- refactor controllers functions: controllers: put sort functions alphabetically, alphabetically and move private functions to end, check arguments (e.g. Zend_Form for $form)

end

-actor-
-source-
-event-

Back