Message of the day:
Welcome. Latest release: https://www.silverstripe.org/download Community Forum: https://forum.silverstripe.org Features: https://forum.silverstripe.org/c/feature-ideas Archive: https://slackarchive.silverstripe.org
If you have any SilverStripe related questions, please supply the version of Framework you're using.
Did you flush? 🚽 =
Archive temporarily at https://archive.codingplayground.nl (redirect)
and you can do something like
- if (!$this->DidAfterWriteRunAlready)
- $this->DidAfterWriteRunAlready = true;
- //do your magic
$this->owner->ID to start with
if I want to run a onAfterWrite on Member in the Member extension file (automatically updating some setting based on selection). How do I get it to only run once, and also who do I reference the record, as $this->ID returned an error
Or add it to the source record (which would automatically add it to the version table)
If you could find a way to require the user to enter a commit message before save, then you could add the "ChangeMessage" to the versioned table directly I suppose
huh thats a good idea actually - piggyback on versioned somehow
Is there a ready-to-use module for stuff like "change messages" for pages? something similar to git commit messages so we can see who changed something (and why...) in the past?
Hi, is someone experience this before, it's happen when i try to import sql via CLI?
Did you recreate the table or Truncate it before importing the sql file?
I drop all tables first
have you tried importing the file via SequelPro or MySQL UI interface?
did it succeed?
my guess is you have a record on that line that has a same record
Looks like the
Primary key and
key is not allowed?
on table creation
is id already defined or does it exist?
maybe you just need
- ALTER TABLE `Block` ADD KEY `form_id` (`form_id`);
Yeah, its already added
- ADD PRIMARY KEY (`id`),
then try importing again
Its already fixed now, the primary key is being added on create table instead of separate alter.
so not sure if I am doing it wrong when adding the fields or if something needs to be done with the React component
This has changed since 4.4 (I think), I believe you now have to add your date fields to
I think you can still filter the list in
Modeladmin::getList() (as before)
I am displaying a composite field in the search from that have two "From" and "To" fields, like it seemed to be done with SS3 however the React component doesn't like it and will return a value of
[object + object] on submission