Skip to content

Commit

Permalink
Escaped html code from refproveedor field on the supplier product model.
Browse files Browse the repository at this point in the history
------
Escapado el html en el campo refproveedor del modelo de producto de proveedor.
  • Loading branch information
NeoRazorX committed May 9, 2022
1 parent 8e31d84 commit 11e7169
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Core/Model/ProductoProveedor.php
Expand Up @@ -148,6 +148,9 @@ public static function tableName(): string

public function test(): bool
{
$this->referencia = self::toolBox()::utils()::noHtml($this->referencia);
$this->refproveedor = self::toolBox()::utils()::noHtml($this->refproveedor);

if (empty($this->referencia)) {
$this->toolBox()->i18nLog()->warning('field-can-not-be-null', ['%fieldName%' => 'referencia', '%tableName%' => static::tableName()]);
return false;
Expand Down

0 comments on commit 11e7169

Please sign in to comment.