Skip to content

Commit c21a76b

Browse files
committed
Jet library (core):
------------------- * ORM DataModel: dataFetch* - raw mode added * Jet Form: Form_Renderer_Single->setCustomRenderer( ?Closure $custom_renderer ): void Form_Renderer_Single->getCustomRenderer(): ?Closure Form_Renderer_Single->renderByView() : string * Bug fix: non-functional internal relations in entity inheritance * Bug fix: Form_Field_Data: invalid default error code * Bug fix: Form_Field_Range: better input value catcher * Bug fix: Form_Field_Float: null value if input missing * Bug fix: Form_Field_Int: null value if input missing Jet Example App: ------------------- * ErrorHandler_Display: output buffer clean in a case of fatal error JetStudio: ------------------- * Forms: Bug fix - null handling
1 parent fa04784 commit c21a76b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_tools/studio/application/Classes/Forms/Class/Property.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ public function getTypeName() : string
418418
*/
419419
public function update( array $data ) : bool
420420
{
421+
421422
$ok = true;
422423
try {
423424

@@ -500,7 +501,7 @@ protected function generateAttribute_Field( array $data, ?string $force_type=nul
500501

501502
if(isset($data['main'])) {
502503
foreach($data['main'] as $key=>$val) {
503-
if($val==='' || $val===[] || $val===['','']) {
504+
if($val==='' || $val===[] || $val===['',''] || $val===null) {
504505
continue;
505506
}
506507
$new_attribute->setArgument($key, $val);
@@ -509,7 +510,7 @@ protected function generateAttribute_Field( array $data, ?string $force_type=nul
509510

510511
if(isset($data['other'])) {
511512
foreach($data['other'] as $key=>$val) {
512-
if($val==='' || $val===[] || $val===['','']) {
513+
if($val==='' || $val===[] || $val===['',''] || $val===null) {
513514
continue;
514515
}
515516

0 commit comments

Comments
 (0)