Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add old_status to msOnBeforeChangeStatus and msOnChangeStatus events #928

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

lexsmil
Copy link
Contributor

@lexsmil lexsmil commented Oct 25, 2024

раньше:

  • msOnBeforeChangeOrderStatus
  • msOnChangeOrderStatus - смена статуса заказа
    • order - объект msOrder
    • status - идентификатор статуса

при этом в msOnBeforeChangeOrderStatus попадал старый статус, который итак можно узнать из объекта msOrder $order, а новый не узнать, а в msOnChangeOrderStatus - наоборот, новый, а старый не узнать

теперь:

  • msOnChangeOrderStatus - смена статуса заказа
    • order - объект msOrder
    • old_status - идентификатор старого статуса
    • status - идентификатор нового статуса

@biz87 biz87 merged commit 6e24cb5 into modx-pro:master Nov 4, 2024
2 checks passed
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.

3 participants