mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
taxonomy create/edit redirect
This commit is contained in:
@@ -23,6 +23,17 @@ class EditCodec extends EditRecord
|
||||
public function afterSave()
|
||||
{
|
||||
clear_search_box_cache();
|
||||
$model = static::$resource::getModel();
|
||||
$table = (new $model)->getTable();
|
||||
clear_taxonomy_cache($table);
|
||||
}
|
||||
|
||||
protected function mutateFormDataBeforeSave(array $data): array
|
||||
{
|
||||
if ($data['mode'] === null) {
|
||||
$data['mode'] = 0;
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user