We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53136a2 commit 5a2c9b7Copy full SHA for 5a2c9b7
app/code/Magento/Downloadable/Model/Link/Builder.php
@@ -133,7 +133,9 @@ public function build(\Magento\Downloadable\Api\Data\LinkInterface $link)
133
$link->setNumberOfDownloads(0);
134
}
135
136
- if (isset($this->data['use_default_title']) && $this->data['use_default_title'] == '1') {
+ $useDefaultTitle = $this->data['use_default_title'] ?? false;
137
+
138
+ if ($useDefaultTitle) {
139
$link->setTitle(null);
140
141
$this->resetData();
0 commit comments