project_type "default" is a value, not a key
This commit is contained in:
parent
11ba3c280a
commit
9cb1feaed4
2 changed files with 11 additions and 2 deletions
|
@ -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 {
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"fields": {
|
||||
"name": "title",
|
||||
"last_update": "last_modified_date",
|
||||
"" : "default"
|
||||
"last_update": "last_modified_date"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue