Change
Tobject: setting the same should not change anything
Issue description
Currently when a tobject receives a set or a set all call, it deletes all statements and adds the new ones. This applies to names, occurrences and roles, even if exactly the same value of player or array of values or players is set. This is bad since it creates new items without any reason.
Developer comments
[%$person->set_date_of_birth($person->get_date_of_birth()); %]
This will delete the exisiting occurrence, create a new one and touch the topic. None of this should happen. Instead nothing should happen.
Before all statements are deleted and the passed arguments are added, a check is performed, by getting the current statements and comparing. This has a runtime import, which is neglectable when dobjects are in use.
|
Work sessions2
Start |
2022-01-29T07:00:00
|
End |
2022-01-29T09:35:00
|
Participant |
Robert Cerny
|
Start |
2022-01-29T15:35:31
|
End |
2022-01-29T16:09:17
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.