You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
setDataValue sets attribute as changed when updated from null to null #5004
null's have always been odd. It just seems like the setDataValue check should use the conditions as the set check (minus the raw of course). In it's current state, they give inconsistent behaviour.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂
Looks like this bug wasn't fixed.
It is currently an important issue for me.
Could you help me to fix this?
For which cases we need isPrimitive check?
According to me we can just remove first part of check - !Utils.isPrimitive(value) || . Am I right?
Activity
mickhansen commentedon Dec 9, 2015
setDataValueis meant more as a low level thing, it definitely doesn't have as much logic. Odd that null doesnt register as a primitive though.Thomathan commentedon Dec 9, 2015
null's have always been odd. It just seems like the setDataValue check should use the conditions as the set check (minus the raw of course). In it's current state, they give inconsistent behaviour.
stale commentedon Jun 29, 2017
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂
Kirill89 commentedon Apr 17, 2018
Looks like this bug wasn't fixed.
It is currently an important issue for me.
Could you help me to fix this?
For which cases we need
isPrimitivecheck?According to me we can just remove first part of check -
!Utils.isPrimitive(value) ||. Am I right?change(model): setDataValue shouldn't set attribute as changed when u…
Kirill89 commentedon Apr 28, 2018
Guys, please take a look at the pull request. We really suffer about this bug.
change(model): setDataValue shouldn't set attribute as changed when u…
sushantdhiman commentedon Apr 29, 2018
#9347