added company selector to project form
This commit is contained in:
@@ -17,7 +17,7 @@ public class Project implements Mappable {
|
||||
private final Map<Long,Member> members;
|
||||
private final Collection<Status> allowedStates;
|
||||
private boolean showClosed;
|
||||
private final Long companyId;
|
||||
private Long companyId;
|
||||
private int status;
|
||||
private String name;
|
||||
private final long id;
|
||||
@@ -96,6 +96,7 @@ public class Project implements Mappable {
|
||||
public Project patch(JSONObject json) {
|
||||
for (var key : json.keySet()){
|
||||
switch (key){
|
||||
case COMPANY_ID: companyId = json.getLong(COMPANY_ID); break;
|
||||
case DESCRIPTION: description = json.getString(key); break;
|
||||
case NAME: name = json.getString(key); break;
|
||||
case SHOW_CLOSED: showClosed = json.getBoolean(SHOW_CLOSED); break;
|
||||
|
||||
Reference in New Issue
Block a user