Skip to content

Commit

Permalink
Merge branch '5.3' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 29, 2024
2 parents 03fb7bc + 6d0fb1e commit 3b083d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controllers/ElementalAreaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use DNADesign\Elemental\Forms\EditFormFactory;
use DNADesign\Elemental\Models\BaseElement;
use DNADesign\Elemental\Services\ElementTypeRegistry;
use SilverStripe\Admin\AdminRootController;
use SilverStripe\CMS\Controllers\CMSMain;
use SilverStripe\Control\HTTPRequest;
use SilverStripe\Control\HTTPResponse;
Expand Down Expand Up @@ -242,7 +243,7 @@ private function createElementForm(BaseElement $element): Form
);

$urlSegment = $this->config()->get('url_segment');
$form->setFormAction("admin/$urlSegment/elementForm/$id");
$form->setFormAction(AdminRootController::admin_url("$urlSegment/elementForm/$id"));

if (!$element->canEdit()) {
$form->makeReadonly();
Expand Down

0 comments on commit 3b083d5

Please sign in to comment.