diff options
author | mikeymell <mikeymell@users.noreply.github.com> | 2018-07-24 11:16:01 +0300 |
---|---|---|
committer | mikeymell <mikeymell@users.noreply.github.com> | 2018-07-24 11:16:01 +0300 |
commit | 77a3ccdb915fa23ed3be35e06abce303a3a3a522 (patch) | |
tree | 7a545557ad2d121b2a9587b80896442e7cc48600 /src/gram.y | |
parent | e90a99ada888ac6199becd7dd1487b33a4e36af5 (diff) |
Call write triggers on value clear
Diffstat (limited to 'src/gram.y')
-rwxr-xr-x | src/gram.y | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -429,6 +429,10 @@ command: $2.left.vp->flags |= is_changed; modflg++; + // clearing the value counts as a write, so run write triggers + if (( $2.left.vp->trigger ) && (($2.left.vp->trigger->flag & TRG_WRITE) == TRG_WRITE)) + do_trigger($2.left.vp,TRG_WRITE); + #ifdef UNDO copy_to_undostruct($2.left.vp->row, $2.left.vp->col, $2.left.vp->row, $2.left.vp->col, 'a'); // here we save in undostruct, all the ents that depends on the deleted one (after change) |