[PLUGIN][AttachmentCollections] Fixing forms submission

This commit is contained in:
2021-12-27 15:25:20 -03:00
parent 72a19d7eac
commit 672df5165c
2 changed files with 7 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ namespace Plugin\AttachmentCollections;
use App\Core\DB\DB;
use App\Core\Event;
use App\Core\Exception\RedirectException;
use App\Core\Form;
use function App\Core\I18n\_m;
use App\Core\Modules\Plugin;
@@ -172,6 +173,7 @@ class AttachmentCollections extends Plugin
}
}
DB::flush();
throw new RedirectException();
}
// add to new collection form
$create_form = Form::create([
@@ -204,6 +206,7 @@ class AttachmentCollections extends Plugin
'collection_id' => $coll->getId(),
]));
DB::flush();
throw new RedirectException();
}
$res[] = Formatting::twigRenderFile(