diff --git a/api/v3/TwingleSync/models/TwingleProject.php b/api/v3/TwingleSync/models/TwingleProject.php index 97b8645..b221acb 100644 --- a/api/v3/TwingleSync/models/TwingleProject.php +++ b/api/v3/TwingleSync/models/TwingleProject.php @@ -360,6 +360,11 @@ class TwingleProject { $values['last_modified_date'] = self::getDateTime($values['last_modified_date']); + // empty project_type to 'default + $values['type'] = $values['type'] == '' + ? 'default' + : $values['type']; + } elseif ($direction == self::OUT) { @@ -367,6 +372,11 @@ class TwingleProject { $values['last_modified_date'] = self::getTimestamp($values['last_modified_date']); + // default project_type to '' + $values['type'] = $values['type'] == 'default' + ? '' + : $values['type']; + } else { diff --git a/api/v3/TwingleSync/resources/dictionary.json b/api/v3/TwingleSync/resources/dictionary.json index dc62f37..2e6bdec 100644 --- a/api/v3/TwingleSync/resources/dictionary.json +++ b/api/v3/TwingleSync/resources/dictionary.json @@ -1,7 +1,6 @@ { "fields": { "name": "title", - "last_update": "last_modified_date", - "" : "default" + "last_update": "last_modified_date" } } \ No newline at end of file