Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uppercase in field name causes renderer to fail ? #4

Open
Xtrazyx opened this issue Oct 15, 2022 · 2 comments
Open

Uppercase in field name causes renderer to fail ? #4

Xtrazyx opened this issue Oct 15, 2022 · 2 comments
Assignees
Labels
bug Something isn't working needs more information

Comments

@Xtrazyx
Copy link

Xtrazyx commented Oct 15, 2022

Thks for the plugin btw !
It is an odd behavior, but here it is.

"Toto": {
      "columnType": {
        "type": "specificType",
        "args": [
          "geometry(POINT,4326)"
        ]
      },
      "type": "json",
      "fieldRenderer": "postgis"
    }

image

"toto": {
      "columnType": {
        "type": "specificType",
        "args": [
          "geometry(POINT,4326)"
        ]
      },
      "type": "json",
      "fieldRenderer": "postgis"
    }

image

@am2222
Copy link
Owner

am2222 commented Nov 7, 2022

Hi @Xtrazyx ,
can you please give me some more details about the error?

@am2222 am2222 self-assigned this Nov 7, 2022
@Xtrazyx
Copy link
Author

Xtrazyx commented Nov 13, 2022

When the field name begins by an uppercase, the map does not display in the content manager when creating or editing the entity.

In the example schema below if i rename "geolocation" in "Geolocation", the bug happens.

api/spot/content-types/spot/schema.json

{
  "kind": "collectionType",
  "collectionName": "spots",
  "info": {
    "singularName": "spot",
    "pluralName": "spots",
    "displayName": "Spot",
    "description": ""
  },
  "options": {
    "draftAndPublish": true
  },
  "pluginOptions": {},
  "attributes": {
    "geolocation": {
      "columnType": {
        "type": "specificType",
        "args": [
          "geometry(POINT,4326)"
        ]
      },
      "type": "json",
      "fieldRenderer": "postgis",
      "isSpatial": true,
      "srid": 4326,
      "coord_dimension": 2,
      "f_table_schema": "public",
      "geoType": "POINT"
    }
  }
}

Thank you for your time !

@am2222 am2222 added the bug Something isn't working label Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs more information
Projects
None yet
Development

No branches or pull requests

2 participants