nahakiole / staruml-php

PHP extension for StarUML
https://staruml.io/extensions
MIT License
17 stars 8 forks source link

Default value for parameter is not set #2

Closed sven-ahrens closed 5 years ago

sven-ahrens commented 5 years ago

Default value for operation parameters are not set after code generation Operation parameters can't have a default value, as it'll not be set after code generation

Attach the .mdj file .mdj files are not supported which is why I embed two screenshots

To Reproduce Steps to reproduce the behavior:

  1. Create a class diagram
  2. Create a class
  3. Add an operation to the class
  4. Add a parameter to the operation
  5. Click on the parameter to configure
  6. Go under "Properties"
  7. Write down a type related value under "defaultValue"

Expected behavior

  1. Code should be generated
  2. Parameter has a default value

Actual behavior

  1. Parameter has no default value

Screenshots

Bildschirmfoto 2019-03-28 um 23 02 30 Bildschirmfoto 2019-03-28 um 23 02 52
nahakiole commented 5 years ago

Thank you for reporting the bug, I fixed it with https://github.com/nahakiole/staruml-php/commit/80ff72cbad8f2ce73798e96656ebe8e6bb8598f8 and I'll try to release 0.0.2 today which will include the bugfix.