| @@ 393-398 (lines=6) @@ | ||
| 390 | { |
|
| 391 | $this->initializeSprGlbAndSession(); |
|
| 392 | $rqCN = $this->tCmnRequest->request->get($details['COLUMN_NAME']); |
|
| 393 | if (!is_null($rqCN)) { |
|
| 394 | if (($details['IS_NULLABLE'] == 'YES') && ($rqCN == '')) { |
|
| 395 | return 'NULL'; |
|
| 396 | } |
|
| 397 | return $rqCN; |
|
| 398 | } |
|
| 399 | return $this->getFieldValueWithoutUserInput($details); |
|
| 400 | } |
|
| 401 | ||
| @@ 410-415 (lines=6) @@ | ||
| 407 | */ |
|
| 408 | private function getFieldValueWithoutUserInput($details) |
|
| 409 | { |
|
| 410 | if (is_null($details['COLUMN_DEFAULT'])) { |
|
| 411 | if ($details['IS_NULLABLE'] == 'YES') { |
|
| 412 | return 'NULL'; |
|
| 413 | } |
|
| 414 | return ''; |
|
| 415 | } |
|
| 416 | return $details['COLUMN_DEFAULT']; |
|
| 417 | } |
|
| 418 | ||