Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Fix list of related records
Browse files Browse the repository at this point in the history
  • Loading branch information
rskrzypczak committed Oct 31, 2023
1 parent b2f9109 commit 5207498
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/YetiForce/Shop/AbstractBaseProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public static function fromArray(array $data): static
$self->website = $data['website'] ?? '';
$self->introduction = \App\Purifier::purifyByType($data['shortDescription'] ?? '', \App\Purifier::TEXT);
$self->description = \App\Purifier::decodeHtml(\App\Purifier::purifyByType($data['description'] ?? '', \App\Purifier::HTML));
$self->image = $data['imageUrl'] ?? null;
$self->image = $data['imageUrl'] ?? '';

$packages = [];
$currencyCode = \App\Fields\Currency::getDefault()['currency_code'];
Expand Down
2 changes: 1 addition & 1 deletion layouts/basic/modules/Vtiger/RelatedList.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
{if $RELATION_FIELD} data-name="{$RELATION_FIELD->getName()}" {/if}{' '}
data-url="{$RELATED_LINK->getUrl()}"
{else}
onclick='{substr($RELATED_LINK->getUrl())};'
onclick='{substr($RELATED_LINK->getUrl(), strlen("javascript:"))};'
{/if}{' '}
{if $IS_SELECT_BUTTON neq true && stripos($RELATED_LINK->getUrl(), 'javascript:') !== 0}name="addButton" {/if}>
{if $IS_SELECT_BUTTON eq false}
Expand Down

0 comments on commit 5207498

Please sign in to comment.