Skip to content

Актуализация событий компонента - #5

Merged
biz87 merged 6 commits into
modx-pro:draftfrom
createit-ru:draft
Mar 10, 2024
Merged

Актуализация событий компонента#5
biz87 merged 6 commits into
modx-pro:draftfrom
createit-ru:draft

Conversation

@createit-ru

Copy link
Copy Markdown
Collaborator

Что оно делает?

Актуализированы названия событий, названия параметров в них в соответствии с утвержденным планом развития компонента.

foreach ($ids as $id) {
/** @var ProcessorResponse $response */
$ms3->utils->runProcessor('MiniShop3\\Processors\\Settings\\Vendor\\' . $method, ['id' => $id]);
$response = $ms3->utils->runProcessor('MiniShop3\\Processors\\Settings\\Vendor\\' . $method, ['id' => $id]);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А нужен ли тут $response и последующий return с прерыванием цикла? Как будто если мы массовую процедуру выполняем, нам не нужно прерывание. Пусть один ID будет с ошибкой, зато остальные нормально завершатся..

@biz87
biz87 merged commit bea1638 into modx-pro:draft Mar 10, 2024
biz87 pushed a commit that referenced this pull request Apr 20, 2026
#1 TZ shift: DatePicker value is a local Date; toISOString() returned UTC
YYYY-MM-DD, which is a day earlier for TZ east of UTC. Introduce
formatDateForPost() that uses getFullYear/getMonth/getDate.

#4 Class literal: replace the string 'MiniShop3\Model\msCategory' in
OptionsController::getTree() with msCategory::class — IDE-refactor safe and
consistent with modResource::class nearby.

#5 Formatter consistency: CategoryOptionsController::formatRow() now delegates
caption merging to OptionLoaderService::mergeCaptionDescription() — same trim
semantics as the storefront overlay, so a ' ' override no longer shows in the
admin grid while the site still falls back to global.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants