Vector241-Eric / ZBuildLights

ZWaveControl for build status lights
MIT License
1 stars 3 forks source link

Fixes issue when on Edit Project the Associated Cruise Control Projec… #38

Closed tawman closed 9 years ago

tawman commented 9 years ago

…ts drop down reset to remove entry. Next visit to page will YSOD due to ServerId == Guid.Empty

Scenarios results from Edit Project screen not having a way to remove an associated cruise control project. For example, setup a project with two Cruise Control projects:

zsave

Then edit the project again and set the second entry to the default drop down entries:

zedit

The Edit screen will update the second entry with the name of Guid.Empty and a Server Id of Guid.Empty. This causes the call to Single on Line 73 to fail. This fix simply allows the Edit screen to display without throwing an error but does not fix the underlying root cause data corruption to Model.Project.CruiseProjectAssociations.

tawman commented 9 years ago

I believe this is related to issue #29 not being implemented.