News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

deleted data magically reappearing

Started by perry59, May 20, 2024, 06:21:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

perry59

I am working on some code that will convert old versions of shapes I have defined into newer versions. All this entails is deleting user, shape and action data from the shapesheet. Rather than going through each cell I just delete the section. Afterward I replace the deleted data with my new data. Sounds simple right?
while stepping through the code I see the SS sections being deleted and if I stop execution and look at the shapesheet those sections are indeed gone. If I resume execution though when adding those sections back to the shape all the old data reappears! Now the shape has both the old data and the new data!
How can this possibly happen? It's driving me nuts!
thanks for any insights
what, me worry?

Yacine

This should come from the Master - not the one in the original stencil, but the one in the document stencil.

If you can afford to delete the master - careful on that point! - this could solve your problem.

Yacine

perry59

Quote from: Yacine on May 20, 2024, 07:07:54 PMThis should come from the Master - not the one in the original stencil, but the one in the document stencil.

If you can afford to delete the master - careful on that point! - this could solve your problem.


BINGO!
As soon as you said "master" the light went on in my head.
I deleted the master from the document stencil and all worked as planned.
Thanks Yacine!
what, me worry?

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 180 (show)
Files included: 32 - 1207KB. (show)
Memory used: 1029KB.
Tokens: post-login.
Cache hits: 13: 0.00193s for 26,766 bytes (show)
Cache misses: 2: (show)
Queries used: 15.

[Show Queries]