Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Correction of a bug in the documentation #89

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

write-programmer
Copy link

This case must be considered as two separate conditions. It is not possible to check if the value is present only in the "new values" array, because during the record 'created' event, "role_id" will not appear in the "old values" array yet, so we will get ErrorException "Trying to get property 'role_id' of non-object ". I think that it would also be worth considering one place where we could define what values from the array in each instance should be converted into what values provided by us. :)

This case must be considered as two separate conditions. It is not possible to check if the value is present only in the "new values" array, because during the record 'created' event, "role_id" will not appear in the "old values" array yet, so we will get ErrorException "Trying to get property 'role_id' of non-object ". I think that it would also be worth considering one place where we could define what values from the array in each instance should be converted into what values provided by us. :)
@write-programmer write-programmer changed the title Correction of a bug in the code Correction of a bug in the documentation Oct 29, 2020
@MortenDHansen MortenDHansen merged commit 6d4eb42 into owen-it:9.0 Jul 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants