mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '5.0' into 5
This commit is contained in:
commit
e1ffa18db6
@ -370,3 +370,6 @@ eo:
|
||||
PASSWORDRESETSENTTEXT: 'Dankon. Reagorda ligilo sendiĝis, kondiĉe ke konto ekzistas por ĉi tiu retadreso.'
|
||||
SilverStripe\View\Shortcodes\EmbedShortcodeProvider:
|
||||
INVALID_URL: 'Okazis problemo ŝargi la aŭdvidaĵon.'
|
||||
DataObject:
|
||||
php:
|
||||
SilverStripe\ORM\DataObjectGENERALSEARCH: 'Ĝenerala serĉo'
|
||||
|
@ -370,3 +370,6 @@ nl:
|
||||
PASSWORDRESETSENTTEXT: 'Bedankt! Er is een e-mail verstuurd om je wachtwoord opnieuw in te stellen - mits het e-mailadres reeds bekend is bij ons.'
|
||||
SilverStripe\View\Shortcodes\EmbedShortcodeProvider:
|
||||
INVALID_URL: 'Het inladen van de media-bestanden is mislukt.'
|
||||
DataObject:
|
||||
php:
|
||||
SilverStripe\ORM\DataObjectGENERALSEARCH: 'Alles doorzoeken'
|
||||
|
@ -137,7 +137,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
|
||||
$form = $this->ItemEditForm();
|
||||
$form->makeReadonly();
|
||||
|
||||
$data = new ArrayData([
|
||||
$data = ArrayData::create([
|
||||
'Backlink' => $controller->Link(),
|
||||
'ItemEditForm' => $form
|
||||
]);
|
||||
@ -235,7 +235,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
|
||||
}
|
||||
}
|
||||
|
||||
$form = new Form(
|
||||
$form = Form::create(
|
||||
$this,
|
||||
'ItemEditForm',
|
||||
$fields,
|
||||
@ -434,7 +434,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
|
||||
$oneLevelUp->Link, // url
|
||||
_t('SilverStripe\\Forms\\GridField\\GridFieldDetailForm.CancelBtn', 'Cancel') // label
|
||||
);
|
||||
$actions->insertAfter('MajorActions', new LiteralField('cancelbutton', $text));
|
||||
$actions->insertAfter('MajorActions', LiteralField::create('cancelbutton', $text));
|
||||
}
|
||||
}
|
||||
|
||||
@ -879,17 +879,17 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
|
||||
$items = $this->popupController->Breadcrumbs($unlinked);
|
||||
|
||||
if (!$items) {
|
||||
$items = new ArrayList();
|
||||
$items = ArrayList::create();
|
||||
}
|
||||
|
||||
if ($this->record && $this->record->ID) {
|
||||
$title = ($this->record->Title) ? $this->record->Title : "#{$this->record->ID}";
|
||||
$items->push(new ArrayData([
|
||||
$items->push(ArrayData::create([
|
||||
'Title' => $title,
|
||||
'Link' => $this->Link()
|
||||
]));
|
||||
} else {
|
||||
$items->push(new ArrayData([
|
||||
$items->push(ArrayData::create([
|
||||
'Title' => _t('SilverStripe\\Forms\\GridField\\GridField.NewRecord', 'New {type}', ['type' => $this->record->i18n_singular_name()]),
|
||||
'Link' => false
|
||||
]));
|
||||
|
Loading…
Reference in New Issue
Block a user