Skip to content

Commit

Permalink
fix: Исправление в TimeType::getEntityField()
Browse files Browse the repository at this point in the history
Исправлено:
- Уточнена проверка на запрос из административной панели в
  TimeType::getEntityField()
  • Loading branch information
webarchitect609 committed Aug 28, 2020
1 parent cc9bc3c commit e8dc6fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Change Log
============

0.7.2
-----

### Исправлено
- Уточнена проверка на запрос из административной панели в `TimeType::getEntityField()`

0.7.1
-----

Expand Down
2 changes: 1 addition & 1 deletion src/main/TimeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ public static function getEntityField(string $name, array $parameters): Field
/**
* В админке надо "притворяться мебелью", чтобы продолжало работать.
*/
if (defined('ADMIN_SECTION')) {
if (defined('ADMIN_SECTION') && ADMIN_SECTION === true) {
return new StringField($name, $parameters);
} else {
return (new TimeField($name));
Expand Down

0 comments on commit e8dc6fc

Please sign in to comment.