Alanaktion / phproject

A high performance full-featured project management system
https://www.phproject.org
GNU General Public License v3.0
388 stars 106 forks source link

direct routing to edit issue has problem with empty(@issue.priority_id) #355

Closed Citydampf closed 6 years ago

Citydampf commented 6 years ago

when you edit an issue directly (GET /issues/edit/@id = Controller\Issues->edit) you will loose the priority-level cause there is an empty issue.priority_id. -> selected default

Alanaktion commented 6 years ago

Good catch! I'm not actually sure why that doesn't break the inline edit form, but it should be fixed on the master branch now. There should be a new release out that includes this fix within a couple weeks.

Citydampf commented 6 years ago

the inline form comes from single function which calls $issue = new \Model\Issue\Detail; and edit function calls only $issue = new \Model\Issue; thats why priority_id array is missing.