Merge pull request #2598 from mike-esokia/PHRAS-1051_fix_delete_icon_status

PHRAS-1051 fix delete function for status icons
This commit is contained in:
Nicolas Maillat
2018-05-18 12:36:01 +02:00
committed by GitHub

View File

@@ -220,13 +220,13 @@ class XmlStatusStructureProvider implements StatusStructureProviderInterface
$status['searchable'] = (Boolean) $properties['searchable']; $status['searchable'] = (Boolean) $properties['searchable'];
$status['printable'] = (Boolean) $properties['printable']; $status['printable'] = (Boolean) $properties['printable'];
if (!isset($properties['img_on'])) { // if (!isset($properties['img_on'])) {
$status['img_on'] = null; // $status['img_on'] = null;
} // }
//
if (!isset($properties['img_off'])) { // if (!isset($properties['img_off'])) {
$status['img_off'] = null; // $status['img_off'] = null;
} // }
$statusStructure->setStatus($bit, $status); $statusStructure->setStatus($bit, $status);