Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Fix broken autocreation
Browse files Browse the repository at this point in the history
  • Loading branch information
Predprod committed Jul 14, 2017
1 parent f8d0eac commit ba0359e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Autocreate/Handlers/OnBeforeIBlockPropertyUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct($params)

$this->dbFields = $this->collectPropertyFieldsFromDB();

if (!$this->propertyHasChanged()) {
if (!$this->propertyHasChanged() || !$this->fields['IBLOCK_ID']) {
throw new SkipHandlerException();
}
}
Expand Down

0 comments on commit ba0359e

Please sign in to comment.