Skip to content

Commit

Permalink
Merge pull request #303 from schmunk42/marc7000-marc7000-patch-1
Browse files Browse the repository at this point in the history
Marc7000 marc7000 patch 1
  • Loading branch information
eluhr authored Oct 2, 2024
2 parents c24c2c0 + 93ae702 commit 054d8cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/generators/crud/callbacks/yii/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static function column()
'format' => 'html',
'attribute' => '{$attribute}',
'value'=> function(\$model){
return html_entity_decode(\$model->{$attribute});
return is_string(\$model->{$attribute}) ? html_entity_decode(\$model->{$attribute}) : \$model->{$attribute};
}
]
FORMAT;
Expand All @@ -28,7 +28,9 @@ public static function attribute()
[
'format' => 'html',
'attribute' => '{$attribute}',
'value' => html_entity_decode(\$model->{$attribute})
'value'=> function(\$model){
return is_string(\$model->{$attribute}) ? html_entity_decode(\$model->{$attribute}) : \$model->{$attribute};
}
]
FORMAT;
};
Expand Down
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: open bash test

DOCKER_COMPOSE ?= docker-compose
DOCKER_COMPOSE ?= docker compose

PHP ?= phpfpm
WEB ?= phpfpm
Expand Down

0 comments on commit 054d8cd

Please sign in to comment.