Skip to content

PERSON_TYPE_ID fix#430

Closed
Frydabest wants to merge 0 commit into
retailcrm:masterfrom
Frydabest:master
Closed

PERSON_TYPE_ID fix#430
Frydabest wants to merge 0 commit into
retailcrm:masterfrom
Frydabest:master

Conversation

@Frydabest

Copy link
Copy Markdown
Contributor

No description provided.

$newOptionsOrderTypes = $nType;

if ($newOptionsOrderTypes[$order['orderType']]) {
if ($personType != $newOptionsOrderTypes[$order['orderType']] && $personType != 0) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

добавить $personType = (int) $newOrder->getField('PERSON_TYPE_ID') перед if-else

сейчас тут в проверке возможна неинициализировнная переменная, так как personalType объявляется в if

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