Release 0.265: ShopPromotion date_from and edit save fix
This commit is contained in:
BIN
updates/0.20/ver_0.265.zip
Normal file
BIN
updates/0.20/ver_0.265.zip
Normal file
Binary file not shown.
3
updates/0.20/ver_0.265_files.txt
Normal file
3
updates/0.20/ver_0.265_files.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
F: ../admin/templates/shop-promotion/view-list.php
|
||||
F: ../autoload/admin/controls/class.ShopPromotion.php
|
||||
F: ../autoload/admin/factory/class.ShopPromotion.php
|
||||
1
updates/0.20/ver_0.265_sql.txt
Normal file
1
updates/0.20/ver_0.265_sql.txt
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE pp_shop_promotion ADD COLUMN date_from date DEFAULT NULL AFTER amount;
|
||||
@@ -1,4 +1,16 @@
|
||||
<b>ver. 0.263 - 13.02.2026</b><br />
|
||||
<b>ver. 0.265 - 13.02.2026</b><br />
|
||||
- UPDATE - modul `/admin/shop_promotion/*`: dodano pole `Data od` (`date_from`) w repozytorium, formularzu i liscie
|
||||
- UPDATE - front: `shop\Promotion::get_active_promotions()` uwzglednia `date_from` (okno aktywnosci od-do)
|
||||
- FIX - edycja promocji zapisuje aktualizacje rekordu zamiast tworzenia nowego (`id` przekazywane przez hidden field + fallback z URL)
|
||||
- UPDATE - testy: `OK (222 tests, 614 assertions)`
|
||||
<hr><b>ver. 0.264 - 13.02.2026</b><br />
|
||||
- NEW - migracja modulu `ShopPromotion` do architektury Domain + DI (`Domain\Promotion\PromotionRepository`, `admin\Controllers\ShopPromotionController`)
|
||||
- UPDATE - modul `/admin/shop_promotion/*` przepiety z legacy `grid/gridEdit` na `components/table-list` i `components/form-edit`
|
||||
- UPDATE - nowe widoki i partiale: `shop-promotion/promotions-list`, `shop-promotion/promotion-edit`, `shop-promotion/promotion-categories-selector`, `shop-promotion/promotion-categories-tree`, `shop-promotion/promotion-edit-custom-script`
|
||||
- CLEANUP - usuniete legacy klasy/pliki: `autoload/admin/controls/class.ShopPromotion.php`, `autoload/admin/factory/class.ShopPromotion.php`, `admin/templates/shop-promotion/view-list.php`
|
||||
- UPDATE - menu admin wskazuje kanoniczny URL `/admin/shop_promotion/list/`
|
||||
- UPDATE - testy: `OK (222 tests, 609 assertions)` + nowe pliki testowe `PromotionRepositoryTest`, `ShopPromotionControllerTest`
|
||||
<hr><b>ver. 0.263 - 13.02.2026</b><br />
|
||||
- NEW - migracja modulu `Integrations` do architektury Domain + DI (`Domain\Integrations\IntegrationsRepository`, `admin\Controllers\IntegrationsController`)
|
||||
- CLEANUP - usunieto integracje Sellasist i Baselinker z calego projektu (kontrolery, factory, szablony, referencje w cron/Order/ShopStatuses/ShopTransport/ShopPaymentMethod/ShopProduct)
|
||||
- UPDATE - `admin\factory\Integrations` jako fasada delegujaca do repozytorium (tylko Apilo + ShopPRO)
|
||||
@@ -443,5 +455,3 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?
|
||||
$current_ver = 263;
|
||||
$current_ver = 265;
|
||||
|
||||
for ($i = 1; $i <= $current_ver; $i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user