Skip to content

Commit

Permalink
Merge pull request #1300 from tsolucio/record-context
Browse files Browse the repository at this point in the history
fix(Widget) accept 0x0 value for RECORDS in QuestionWidget
  • Loading branch information
xhildashazivari committed Jun 7, 2022
2 parents a76a7e0 + 2f74003 commit f718179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/Vtiger/KanbanView.php
Expand Up @@ -38,7 +38,7 @@
$tabid = getTabid($currentModule);
$customlink_params = array(
'MODULE' => $currentModule,
'RECORD' => 2,
'RECORD' => '0x0',
'ACTION' => vtlib_purify($_REQUEST['action'])
);
$linksurls = BusinessActions::getAllByType($tabid, array(
Expand Down
2 changes: 1 addition & 1 deletion modules/cbQuestion/cbQuestionWidget.php
Expand Up @@ -43,7 +43,7 @@ public function process($context = false) {
'$MODULE$' => $module,
'$USERID$' => $current_user->id,
);
if (isset($recordid)) {
if (isset($recordid) && $recordid != '0x0') {
$ctxtmodule = getSalesEntityType($recordid);
$params['$MODULE$'] = $ctxtmodule;
$ent = CRMEntity::getInstance($ctxtmodule);
Expand Down

0 comments on commit f718179

Please sign in to comment.