X-Git-Url: https://git.hcoop.net/clinton/lisp-on-lines.git/blobdiff_plain/ec4f5786bb3917169e036c2ddfcb0d24f22379f1..12dcf3d4b06fd83b8c62c01a93dc26f94dc922ee:/src/mewa/slot-presentations.lisp diff --git a/src/mewa/slot-presentations.lisp b/src/mewa/slot-presentations.lisp index edc42fd..e0ddb79 100644 --- a/src/mewa/slot-presentations.lisp +++ b/src/mewa/slot-presentations.lisp @@ -119,7 +119,9 @@ (:default-initargs)) (defaction view-instance ((self component) instance &rest initargs) - (call-component (parent self) (apply #'mewa:make-presentation instance initargs))) + (call-component (parent self) (apply #'mewa:make-presentation instance initargs)) + ;; the viewed instance could have been changed/deleted, so we sync this instance + (meta-model:sync-instance (instance (parent self)))) (defmethod present-slot :around ((slot foreign-key-slot-presentation) instance) @@ -128,8 +130,8 @@ (cond ((editablep slot) (render) - (