Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore attributes when they contain arrays #188

Merged
merged 3 commits into from Apr 15, 2017

Conversation

thyseus
Copy link
Contributor

@thyseus thyseus commented Jan 24, 2017

This is an small workaround to avoid this error when using arrays as attribute values (which should be serialized somehow before saving and unserialized in afterFind()):

image

We should consider supporting this case properly in an future yii2-audit version.

@Blizzke
Copy link
Member

Blizzke commented Jan 26, 2017

There might be an issue regarding array'ed values, but your patch effectively stops anything from being logged at all.. Both will always be arrays as they contain a list of attributes and their values.

@thyseus
Copy link
Contributor Author

thyseus commented Jan 26, 2017

Oh dammit. I will rework this, thanks for being that attentive.

@thyseus
Copy link
Contributor Author

thyseus commented Jan 30, 2017

@Blizzke what do you think about this approach? 31c7e70

@thyseus
Copy link
Contributor Author

thyseus commented Mar 1, 2017

@Blizzke Just a kind reminder that this issue is still open. I am using the great yii2-audit module in an project and would dislike to do an own fork just because of this small change. Thanks a lot :)

@cornernote
Copy link
Contributor

cornernote commented Mar 13, 2017 via email

@thyseus thyseus force-pushed the ignore-arrays-as-attributes branch from 6010334 to 54ceb5f Compare March 13, 2017 14:56
@thyseus
Copy link
Contributor Author

thyseus commented Apr 5, 2017

@cornernote any progress with this issue? any chance to get this into the next release? thanks

@cornernote
Copy link
Contributor

cornernote commented Apr 5, 2017 via email

@cornernote cornernote merged commit 7a9465d into bedezign:master Apr 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants