mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°6476 - Revert datamodel / compiler changes from N°5563 (#515)
This commit is contained in:
@@ -48,9 +48,8 @@ class BlockDirectLinkSetViewTable extends AbstractBlockLinkSetViewTable
|
||||
$aExtraParams['panel_title_tooltip'] = $this->oAttDef->GetDescription();
|
||||
}
|
||||
|
||||
// Add creation in modal if the linkset is not readonly
|
||||
if (!$this->oAttDef->GetReadOnly()
|
||||
&& $this->oAttDef->GetEditMode() != LINKSET_EDITMODE_NONE
|
||||
// Add creation in modal if edit mode is not NONE
|
||||
if ($this->oAttDef->GetEditMode() != LINKSET_EDITMODE_NONE
|
||||
&& $this->bIsAllowCreate) {
|
||||
$aExtraParams['creation_in_modal'] = true;
|
||||
$aExtraParams['creation_in_modal_tooltip'] = $this->oAttDef->GetEditMode() == LINKSET_EDITMODE_ADDREMOVE ? $this->GetDictionaryEntry(static::DICT_ADD_BUTTON_TOOLTIP) : $this->GetDictionaryEntry(static::DICT_CREATE_BUTTON_TOOLTIP);
|
||||
|
||||
@@ -59,9 +59,8 @@ class BlockIndirectLinkSetViewTable extends AbstractBlockLinkSetViewTable
|
||||
$aExtraParams['panel_title_tooltip'] = $this->oAttDef->GetDescription();
|
||||
}
|
||||
|
||||
// Add creation in modal if the linkset is not readonly
|
||||
if (!$this->oAttDef->GetReadOnly()
|
||||
&& $this->bIsAllowCreate) {
|
||||
// Add creation in modal if creation allowed
|
||||
if ( $this->bIsAllowCreate) {
|
||||
$aExtraParams['creation_in_modal'] = true;
|
||||
$aExtraParams['creation_in_modal_tooltip'] = $this->GetDictionaryEntry(static::DICT_ADD_BUTTON_TOOLTIP);
|
||||
$aExtraParams['creation_in_modal_form_title'] = $this->GetDictionaryEntry(static::DICT_ADD_MODAL_TITLE);
|
||||
|
||||
Reference in New Issue
Block a user