Skip to content
Snippets Groups Projects
Commit 87e6c5a8 authored by Satish's avatar Satish
Browse files

Fixes #529 - vt7 - Documents cannot be added from related modules

parent 7c2402a2
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,8 @@
<div class="col-lg-6 col-md-6 col-sm-6 btn-toolbar">
<div class="row">
{foreach item=RELATED_LINK from=$RELATED_LIST_LINKS['LISTVIEWBASIC']}
{if $RELATED_LINK->getLabel() eq 'Select Document'}
{if $RELATED_LINK->get('linkmodule') eq 'Documents'}
<div class="col-sm-3">
{assign var=IS_SELECT_BUTTON value={$RELATED_LINK->get('_selectRelation')}}
{* setting button module attribute to Events or Calendar based on link label *}
......
......@@ -125,6 +125,7 @@ class Documents_InRelation_View extends Vtiger_RelatedList_View {
$viewer->assign('IS_EDITABLE', $relationModel->isEditable());
$viewer->assign('IS_DELETABLE', $relationModel->isDeletable());
$viewer->assign('USER_MODEL', Users_Record_Model::getCurrentUserModel());
$viewer->assign('IS_CREATE_PERMITTED', $relatedModuleModel->isPermitted('CreateView'));
$viewer->assign('VIEW', $request->get('view'));
$viewer->assign('PARENT_ID', $parentId);
$viewer->assign('SEARCH_DETAILS', $searchParams);
......
......@@ -156,6 +156,7 @@ class Vtiger_RelationListView_Model extends Vtiger_Base_Model {
'linklabel' => vtranslate('LBL_SELECT')." ".vtranslate('SINGLE_'.$relatedModel->getName(), $relatedModel->getName()),
'linkurl' => '',
'linkicon' => '',
'linkmodule' => $relatedModel->getName(),
)
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment