2508 Posts in 675 Topics by 520 members
Data Model Questions
SilverStripe Forums » Data Model Questions » Checking if the page being deleted is a draft
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 571 Views |
-
Checking if the page being deleted is a draft

2 July 2009 at 12:19am
Is this possible?
I set up a couple of onBeforeDelete() functions to make sure the relationships don't brake when the page is deleted.
However I only want this to run if the page is deleted "for real" not when it's deleted from the draft site.Is there some easy way to check if the page is a draft?
Kindly, Marcus.
| 571 Views | ||
|
Page:
1
|
Go to Top |

