ifox
11/01/2021, 10:32 AMSami
11/01/2021, 10:33 AMSami
11/01/2021, 10:34 AMchrispymm
11/01/2021, 12:22 PM$object->wasChanged('published') always returns true. this means my action happens on every update. Am I missing something? or should this work?ifox
11/01/2021, 1:27 PMifox
11/01/2021, 1:28 PM$fields instead, depending on your use casechrispymm
11/01/2021, 1:39 PMifox
11/01/2021, 1:42 PMifox
11/01/2021, 1:43 PMuser
11/01/2021, 1:52 PMchrispymm
11/01/2021, 1:59 PMgetBrowserData method on the CategoryController like this:chrispymm
11/01/2021, 1:59 PMchrispymm
11/01/2021, 2:00 PMifox
11/01/2021, 2:16 PMifox
11/01/2021, 2:16 PMphp
@formField('browser', [
'label' => 'Categories',
'max' => 5,
'routePrefix' => 'settings',
'moduleName' => 'categories',
'params' => [
'type' => 'event'
]
])ifox
11/01/2021, 2:17 PMgetBrowserData method as:
php
public function getBrowserData($prependScope = [])
{
if ($this->request->has('type')) {
$prependScope['category_type'] = $this->request->get('type');
}
return parent::getBrowserData($prependScope);
}Harings Rob
11/01/2021, 2:24 PMchrispymm
11/01/2021, 2:25 PMifox
11/01/2021, 2:26 PMtwill.php)?Harings Rob
11/01/2021, 2:27 PMHarings Rob
11/01/2021, 2:37 PMHarings Rob
11/01/2021, 2:42 PMHarings Rob
11/01/2021, 2:44 PMHarings Rob
11/01/2021, 2:44 PMHarings Rob
11/01/2021, 2:45 PMuser
11/01/2021, 2:55 PM`Sebastlan
11/01/2021, 9:47 PM`Sebastlan
11/01/2021, 9:47 PM`Sebastlan
11/01/2021, 9:48 PMpublic $mediasParams = [
'project' => [
'flex' => [
'name' => 'free',
'ratio' => 0,
],
],`Sebastlan
11/02/2021, 9:15 AM