Skip to content

Commit

Permalink
Fixed issue with missing template
Browse files Browse the repository at this point in the history
  • Loading branch information
gorriecoe committed May 1, 2018
1 parent 1b9821d commit 2632cdf
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/forms/HistoryGridFieldItemRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace gorriecoe\DataObjectHistory\Forms;

use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\LiteralField;
use SilverStripe\Forms\HiddenField;
use SilverStripe\Forms\ReadonlyField;
use SilverStripe\Forms\FormAction;
Expand Down Expand Up @@ -100,17 +99,10 @@ public function ItemEditForm()
);
}

$fields->unshift(
LiteralField::create(
'CurrentlyViewingMessage',
ArrayData::create([
'Content' => DBField::create_field('HTMLFragment', $message),
'Classes' => 'notice'
])
->renderWith('Silverstripe\\CMS\\Controllers\\Includes\\CMSMain_notice')
)
$form->sessionMessage(
DBField::create_field('HTMLFragment', $message),
'notice'
);

$form->setFields($fields);
return $form;
}
Expand Down

0 comments on commit 2632cdf

Please sign in to comment.