Fix php warning and missing dict entry

This commit is contained in:
Stephen Abello
2023-01-23 15:36:38 +01:00
parent b2397fc570
commit 3d9a85d577
2 changed files with 4 additions and 1 deletions

View File

@@ -25,6 +25,8 @@ Dict::Add('EN US', 'English', 'English', array(
'UI:Links:ActionRow:Delete' => 'Delete',
'UI:Links:ActionRow:Delete+' => 'Delete this object',
'UI:Links:ActionRow:Delete:Confirmation' => 'Do you really want to delete <b>{item}</b> from current object ?',
'UI:Links:ActionRow:Modify' => 'Modify',
'UI:Links:ActionRow:Modify+' => 'Modify this object',
'UI:Links:ActionRow:Modify:Modal:Title' => 'Modify a link',
'UI:Links:New:Modal:Title' => 'Creation of a link',
'UI:Links:New:Button:Tooltip' => 'Add a new link',

View File

@@ -81,7 +81,8 @@ class BlockIndirectLinksViewTable extends AbstractBlockLinksViewTable
);
$aRowActions[] = array(
'tooltip' => 'UI:Links:ActionRow:Modify',
'label' => 'UI:Links:ActionRow:Modify',
'tooltip' => 'UI:Links:ActionRow:Modify+',
'icon_classes' => 'fas fa-pen',
'js_row_action' => "LinkSetWorker.ModifyLinkedObject('{$this->oAttDef->GetLinkedClass()}', aRowData['Link/_key_/raw'], '{$this->GetTableId()}');",
);