Skip to content

Commit

Permalink
SP: consider 'no_type' in new form implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
klees committed Oct 23, 2018
1 parent 606f340 commit cdb4a99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ protected function buildForm(\ilObjStudyProgramme $prg, string $submit_action) :
[
self::PROP_TYPE =>
$ff->select($txt("type"), $sp_types)
->withValue((string)$prg->getSubtypeId())
->withValue($prg->getSubtypeId() == 0 ? "" : $prg->getSubtypeId())
->withAdditionalTransformation($tf->custom(function($v) {
if ($v == "") {
return 0;
Expand Down

0 comments on commit cdb4a99

Please sign in to comment.