File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/generators/crud/callbacks/yii Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public static function column()
1313 'format' => 'html',
1414 'attribute' => ' {$ attribute }',
1515 'value'=> function( \$model){
16- return html_entity_decode( \$model-> {$ attribute });
16+ return is_string( \$ model-> { $ attribute } ) ? html_entity_decode( \$model-> {$ attribute }) : \$ model-> { $ attribute } ;
1717 }
1818]
1919FORMAT ;
@@ -28,7 +28,9 @@ public static function attribute()
2828[
2929 'format' => 'html',
3030 'attribute' => ' {$ attribute }',
31- 'value' => html_entity_decode( \$model-> {$ attribute })
31+ 'value'=> function( \$model){
32+ return is_string( \$model-> {$ attribute }) ? html_entity_decode( \$model-> {$ attribute }) : \$model-> {$ attribute };
33+ }
3234]
3335FORMAT ;
3436 };
Original file line number Diff line number Diff line change 11.PHONY : open bash test
22
3- DOCKER_COMPOSE ?= docker- compose
3+ DOCKER_COMPOSE ?= docker compose
44
55PHP ?= phpfpm
66WEB ?= phpfpm
You can’t perform that action at this time.
0 commit comments