diff --git a/Controller/ApiAttributeController.php b/Controller/ApiAttributeController.php index 0db0fd4..b9e54cc 100644 --- a/Controller/ApiAttributeController.php +++ b/Controller/ApiAttributeController.php @@ -447,7 +447,6 @@ final class ApiAttributeController extends Controller */ public function apiItemAttributeValueDelete(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void { - return; // @todo: I don't think values can be deleted? Only Attributes // However, It should be possible to remove UNUSED default values // either here or other function? diff --git a/Theme/Backend/Lang/da.lang.php b/Theme/Backend/Lang/da.lang.php index 13d9297..206dbfa 100755 --- a/Theme/Backend/Lang/da.lang.php +++ b/Theme/Backend/Lang/da.lang.php @@ -118,7 +118,7 @@ return ['ItemManagement' => [ 'QA' => 'QA.', 'QM' => 'Qm.', 'Quantity' => 'Antal', - 'QuantityUnit' => 'Mængden af ​​mængde', + 'QuantityUnit' => "Mængden af \u{200b}\u{200b}mængde", 'RecentInvoices' => '#VALUE!', 'ReorderLevel' => 'Ombestillingsniveau', 'Reserved' => 'Reserveret', diff --git a/Theme/Backend/Lang/fr.lang.php b/Theme/Backend/Lang/fr.lang.php index beb993c..a00ee20 100755 --- a/Theme/Backend/Lang/fr.lang.php +++ b/Theme/Backend/Lang/fr.lang.php @@ -113,7 +113,7 @@ return ['ItemManagement' => [ 'Properties' => 'Propriétés', 'Property' => 'Propriété', 'Purchase' => 'Acheter', - 'PurchasePrice' => 'Prix ​​d\'achat', + 'PurchasePrice' => "Prix \u{200b}\u{200b}d'achat", 'Purchasing' => 'Achat', 'QA' => 'Qa', 'QM' => 'Qm', @@ -124,7 +124,7 @@ return ['ItemManagement' => [ 'Reserved' => 'Réservé', 'SN' => 'Sn', 'Sales' => 'Ventes', - 'SalesPrice' => 'Prix ​​de vente', + 'SalesPrice' => "Prix \u{200b}\u{200b}de vente", 'SalesPricing' => '', 'Segment' => 'Segment', 'ShelfLife' => 'Durée de vie', diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index b3eb223..440bce3 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -45,6 +45,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase * @var \Modules\ItemManagement\Controller\ApiController */ protected ModuleAbstract $module; + protected ModuleAbstract $attrModule; /** @@ -71,7 +72,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase $account = new Account(); TestUtils::setMember($account, 'id', 1); - $permission = new AccountPermission(); + $permission = new AccountPermission(); $permission->unit = 1; $permission->app = 2; $permission->setPermission( @@ -87,7 +88,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase $this->app->accountManager->add($account); $this->app->router = new WebRouter(); - $this->module = $this->app->moduleManager->get('ItemManagement', 'Api'); + $this->module = $this->app->moduleManager->get('ItemManagement', 'Api'); $this->attrModule = $this->app->moduleManager->get('ItemManagement', 'ApiAttribute'); TestUtils::setMember($this->module, 'app', $this->app); diff --git a/tests/Models/ItemTest.php b/tests/Models/ItemTest.php index c887519..38f041b 100755 --- a/tests/Models/ItemTest.php +++ b/tests/Models/ItemTest.php @@ -15,10 +15,8 @@ declare(strict_types=1); namespace Modules\ItemManagement\tests\Models; use Modules\Attribute\Models\Attribute; -use Modules\Editor\Models\EditorDoc; use Modules\ItemManagement\Models\Item; use Modules\ItemManagement\Models\ItemStatus; -use Modules\Media\Models\Media; use phpOMS\Localization\BaseStringL11n; /**