Giter Club home page Giter Club logo

Comments (4)

daftspunk avatar daftspunk commented on May 27, 2024 1

Hi @sqwk

The next patch will include a fix for this (v3.5.14). After updating, set the mode to array so it can be searched with the group filter. For example:

foo:
    label: Foo
    type: taglist
    mode: array

Thanks!

from october.

sqwk avatar sqwk commented on May 27, 2024 1

So instead of tag1,tag2 it should be be ['tag1','tag2']?

from october.

sqwk avatar sqwk commented on May 27, 2024

I installed the update. Renderering the taglist works fine, applying a filter does not:

PDOException: SQLSTATE[22032]: <<Unknown error>>: 3141 Invalid JSON text in argument 1 to function json_contains: "Invalid value." at position 0. in /is/htdocs/wp10607758_UGYQNSM3W9/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:419

The whole field definition is now:

fields:
    foo:
        label: Foo?
        type: taglist
        mode: array
        customTags: false
        useKey: true
        options:
            tag1: Tag 1
            tag2: Tag 2
            tag3: Tag 3
        validation:
            - required
        tab: Main
        column:
            label: Foo
            invisible: true
        scope:
            label: Foo
        span: row
        spanClass: col-12 col-md-4

from october.

daftspunk avatar daftspunk commented on May 27, 2024

Hey @sqwk

The error suggests the database still contains a "string" value, so it can't be queried as JSON. We may need to lock mode to array to prevent this scenario. In your case, you'll need to update every record after making this change to ensure it is set to a valid JSON value for SQL to query.

from october.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.