]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commit
fix(ERP-248): move $store lookup before if/else to fix undefined variable origin/feature_filippov_ERP-248_fix_store_scope
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Sun, 1 Mar 2026 19:52:15 +0000 (22:52 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Sun, 1 Mar 2026 19:52:15 +0000 (22:52 +0300)
commit5ca1c65db00fa337ac6c643131e47ef5442ed280
tree95a912acd99ecb489b03e59cf207db44157aee1d
parente8100707dbc25b640d6bc20236d57cb7f75b3c9e
fix(ERP-248): move $store lookup before if/else to fix undefined variable

$store was defined only inside the "new order" block (line 1252), but
referenced in 5 places inside the "existing order" else-block (lines
1692, 1735, 1770, 1828, 2017), causing "Undefined variable $store"
on production.

Moved $warehouseGuid and $store assignment before the if/else split
so both branches share the same variable scope.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
erp24/services/MarketplaceService.php