Tamara

I work exclusively with Silverstripe at my current job (Netherlands)

Tamara

And in a lesson: https://www.silverstripe.org/learn/lessons/v4/introduction-to-modeladmin-1 (and search for Adding versioning)

Show 2 attachment(s)
silverstripe.org  
SilverStripe Lessons » Introduction to ModelAdmin

In this lesson, we'll create the Property object that will drive most of the content in our application, and add a management interface for it in the CMS using ModelAdmin.

silverstripe.org  
SilverStripe Lessons » Introduction to ModelAdmin

In this lesson, we'll create the Property object that will drive most of the content in our application, and add a management interface for it in the CMS using ModelAdmin.

Hide attachment content
Tamara

The field NzsltaNumber is only available through the owner, because it's an extension

(2)
Tamara

if (!$this->NzsltaNumber) { should be: if (!$this->owner->NzsltaNumber) {

Tamara

I think you need to use public function populateDefaults() instead of updateCMSFields