project_type "default" is a value, not a key

This commit is contained in:
Marc Michalsky forumZFD 2020-10-02 16:54:03 +02:00
parent 11ba3c280a
commit 9cb1feaed4
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
2 changed files with 11 additions and 2 deletions

View file

@ -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 {

View file

@ -1,7 +1,6 @@
{
"fields": {
"name": "title",
"last_update": "last_modified_date",
"" : "default"
"last_update": "last_modified_date"
}
}